diff --git a/image_list.py b/image_list.py index 5e0f074..969be3c 100755 --- a/image_list.py +++ b/image_list.py @@ -217,7 +217,11 @@ def append_data(conn): print("Append basic metadata...") db=conn.cursor() dbh=conn.cursor() - count=db.execute('''SELECT count(hash) FROM list EXCEPT SELECT hash FROM data''').fetchall()[0][0] + db.execute('''SELECT hash FROM list EXCEPT SELECT hash FROM data''') + i=0 + for i,row in enumerate(db): + continue + count=i db.execute('''SELECT hash FROM list EXCEPT SELECT hash FROM data''') dirname_old="" for i,row in enumerate(db):