reduce verbosity
This commit is contained in:
@@ -214,6 +214,7 @@ def add_single(conn,filename,change=False,hash=None,minsize=0):
|
||||
return
|
||||
|
||||
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]
|
||||
@@ -230,8 +231,8 @@ def append_data(conn):
|
||||
portrait=0
|
||||
dbh.execute("INSERT OR REPLACE INTO data(hash,portrait,width,height) \
|
||||
VALUES(?,?,?,?)",(row[0],portrait,dims[0],dims[1]))
|
||||
print("%(nr)i %(f)s" % {'f':filename, 'nr':count-i})
|
||||
if (i%50==0):
|
||||
print("%(nr)i" % {'nr':count-i})
|
||||
conn.commit()
|
||||
conn.commit()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user