f6b4283ab1f9

Rehash tasks after editing.
[view raw] [browse files]
author sealion <sealion@charadeyouare.org>
date Wed, 28 Sep 2011 02:03:32 +0400
parents 6311beda0836
children bbf7f8da61d3
branches/tags (none)
files t.py

Changes

--- a/t.py	Tue Sep 20 18:52:47 2011 -0400
+++ b/t.py	Wed Sep 28 02:03:32 2011 +0400
@@ -183,6 +183,7 @@
             text = re.sub(find, repl, task['text'])
 
         task['text'] = text
+        task['id'] = _hash(text)
 
     def finish_task(self, prefix):
         """Mark the task with the given prefix as finished.