From a5c1c9260fb01204112f8b8868170d15dd05019c Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 23 Jun 2009 04:28:43 +0200 Subject: added priorities with possibility to define different colors colors does not work correctly --- storage/sqlite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'storage') 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]) -- cgit v1.2.3