summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
Diffstat (limited to 'storage')
-rw-r--r--storage/sqlite.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/sqlite.py b/storage/sqlite.py
index 8c97186..a7e98e9 100644
--- a/storage/sqlite.py
+++ b/storage/sqlite.py
@@ -93,12 +93,12 @@ class sqlite(storageBase):
def notifyChange(self, sender):
if sender.getId() >= 0:
self.cur.execute('update todo set title=?, createdAt=?, priority=?, desc=?, completed=?, removed=?, due=? where id=?',
- (sender.getTitle(), sender.getCreatedAt(), sender.getPriority(),
+ (sender.getTitle(), sender.getCreatedAt(), sender.getPriority().getId(),
sender.getDescription(), sender.getCompleted(), sender.getRemoved(), sender.getDue(), sender.getId()))
self.con.commit()
else:
self.cur.execute('insert into todo (title, createdAt, priority, desc, completed, removed, due) VALUES (?, ?, ?, ?, ?, ?, ?)',
- (sender.getTitle(), sender.getCreatedAt(), sender.getPriority(),
+ (sender.getTitle(), sender.getCreatedAt(), sender.getPriority().getId(),
sender.getDescription(), sender.getCompleted(), sender.getRemoved(), sender.getDue()))
self.con.commit()
sender.setId(self.cur.execute('select last_insert_rowid()').fetchone()[0])