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