fixed typo
This commit is contained in:
@@ -143,6 +143,7 @@ def add_recurse(options):
|
|||||||
add_single(conn,filename,change=True,minsize=options.minsize)
|
add_single(conn,filename,change=True,minsize=options.minsize)
|
||||||
except:
|
except:
|
||||||
print('error changing file: '+filename)
|
print('error changing file: '+filename)
|
||||||
|
traceback.print_exc(file=sys.stdout)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
# if file mentioned, and hash same, no need to change entry
|
# if file mentioned, and hash same, no need to change entry
|
||||||
conn.commit()
|
conn.commit()
|
||||||
@@ -164,7 +165,7 @@ def add_single(conn,filename,change=False,hash=None,minsize=0):
|
|||||||
fsize=os.path.getsize(filename)
|
fsize=os.path.getsize(filename)
|
||||||
if change:
|
if change:
|
||||||
db.execute("UPDATE list SET date=?, portrait=?, hash=?, width=? ,height=?, \
|
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))
|
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]})
|
print("changing: %(f)s (%(x)sx%(y)s)" % {'f':filename, 'x':dims[0], 'y':dims[1]})
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user