From ccc813086741c09072b645d20abe588b7a90f318 Mon Sep 17 00:00:00 2001 From: q Date: Wed, 18 Feb 2015 20:40:16 +0200 Subject: [PATCH] reduce verbosity --- image_list.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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):