Fix the disappearing finished tasks.
author |
Steve Losh <steve@stevelosh.com> |
date |
Mon, 31 Aug 2009 22:08:15 -0400 |
parents |
fac6ee1db75f
|
children |
37c691ec0861
|
branches/tags |
(none) |
files |
t.py |
Changes
--- a/t.py Fri Aug 28 21:30:12 2009 -0400
+++ b/t.py Mon Aug 31 22:08:15 2009 -0400
@@ -144,7 +144,8 @@
be raised.
"""
- self.tasks.pop(self[prefix]['id'])
+ task = self.tasks.pop(self[prefix]['id'])
+ self.done[task['id']] = task
def print_list(self, kind='tasks', verbose=False):
"""Print out a nicely formatted list of unfinished tasks."""