no meas. bug

This commit is contained in:
q
2014-06-05 19:56:25 +03:00
parent 168330e3a7
commit 00009d5b45

View File

@@ -403,6 +403,7 @@ def find_fingerprint_similar(opts):
db1.execute("SELECT file,fingerprint,sharpness,width,height,R,G,B FROM list WHERE sharpness > 0 ORDER BY file")
hits=[]
hit_list=[]
i=None
for i,hit1 in enumerate(db1):
if hit1[0] in hit_list:
continue
@@ -431,7 +432,7 @@ def find_fingerprint_similar(opts):
hits.append(this1)
hit_list.append(cmp)
if i==0:
if i==None:
print("No measurements found")
sys.exit(1)