null image measurements at contents change

This commit is contained in:
ville rantanen
2014-08-06 19:17:37 +03:00
parent 459bbfacde
commit 443227e310

View File

@@ -162,6 +162,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, \
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: