tagger with number of expected tags. renumbering of hotkeys

This commit is contained in:
q
2015-05-14 07:43:03 +03:00
parent afe6861bdf
commit 2b30f5085a
2 changed files with 16 additions and 9 deletions

View File

@@ -265,7 +265,7 @@ def print_tag(options):
hash=file2hash(conn.cursor(), os.path.realpath(options.tag))
if hash==None:
print("Image not found "+os.path.realpath(options.tag))
return
sys.exit(1)
db=conn.cursor()
db.execute("SELECT DISTINCT tag FROM tags WHERE hash = ?",(hash,))
print( ",".join( row[0] for row in db ))