null image measurements at contents change
This commit is contained in:
@@ -162,6 +162,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, \
|
||||||
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