fixed db creation

This commit is contained in:
ville rantanen
2014-08-14 17:38:38 +03:00
parent e0f3d32198
commit 567461dd1d

View File

@@ -75,8 +75,7 @@ def createdb(sqlfile):
width INTEGER,height INTEGER,size INTEGER,\
fingerprint TEXT,sharpness NUMERIC,\
R REAL,G REAL, B REAL, BR REAL, BG REAL, BB REAL)')
db.execute('CREATE TABLE descriptions (\
file PRIMARY KEY TEXT,path TEXT, hash TEXT,\
db.execute('CREATE TABLE descriptions (file TEXT,path TEXT, hash TEXT,\
description TEXT)')
conn.commit()
return