fixed typo

This commit is contained in:
q
2014-08-06 19:41:13 +03:00
parent 44ef3511d2
commit e0f3d32198

View File

@@ -143,6 +143,7 @@ def add_recurse(options):
add_single(conn,filename,change=True,minsize=options.minsize)
except:
print('error changing file: '+filename)
traceback.print_exc(file=sys.stdout)
sys.exit(1)
# if file mentioned, and hash same, no need to change entry
conn.commit()
@@ -164,7 +165,7 @@ def add_single(conn,filename,change=False,hash=None,minsize=0):
fsize=os.path.getsize(filename)
if change:
db.execute("UPDATE list SET date=?, portrait=?, hash=?, width=? ,height=?, \
fingerprint=NULL, sharpness=NULL, R=NULL, G=NULL, B=NLL, BR=NULL, BG=NULL, BB=NULL, \
fingerprint=NULL, sharpness=NULL, R=NULL, G=NULL, B=NULL, BR=NULL, BG=NULL, BB=NULL, \
size=? WHERE file=?",(ftime,portrait,hash,dims[0],dims[1],fsize,filename))
print("changing: %(f)s (%(x)sx%(y)s)" % {'f':filename, 'x':dims[0], 'y':dims[1]})
else: