summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2009-06-23 04:28:43 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2009-06-23 04:28:43 +0200
commita5c1c9260fb01204112f8b8868170d15dd05019c (patch)
tree7ffd606a19f0fbb2b5bf5682b28e025658696c35 /storage
parente1b6d1a619aa8f75510d5b1812fe68459fb01578 (diff)
downloadtodolist-a5c1c9260fb01204112f8b8868170d15dd05019c.tar.gz
todolist-a5c1c9260fb01204112f8b8868170d15dd05019c.tar.xz
todolist-a5c1c9260fb01204112f8b8868170d15dd05019c.zip
added priorities with possibility to define different colors
colors does not work correctly
Diffstat (limited to '')
-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])