summaryrefslogtreecommitdiff
path: root/check/commands/imagehash/query.py
blob: 4c51324b6c44081bdb74a6d9308f86b559ae0467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""
Search the database for an image
"""

import click

from app.models.sql_factory import search_by_phash, add_phash

@click.command()
@click.option('-i', '--input', 'opt_fn',
  required=True,
  help="File to search")
@click.pass_context
def cli(ctx, opt_fn):
  """
  Search the database for an image
  """
  print('Searching for a file...')