diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-06-23 04:28:43 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-06-23 04:28:43 +0200 |
commit | a5c1c9260fb01204112f8b8868170d15dd05019c (patch) | |
tree | 7ffd606a19f0fbb2b5bf5682b28e025658696c35 /storage | |
parent | e1b6d1a619aa8f75510d5b1812fe68459fb01578 (diff) | |
download | todolist-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.py | 4 |
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]) |