add printing of id after adding a task
author |
Max Brenner <xamrennerb@gmail.com> |
date |
Tue, 10 Apr 2018 11:12:54 +0200 |
parents |
b183c1d51530
|
children |
7dc0c86e2230
|
branches/tags |
(none) |
files |
t.py |
Changes
--- a/t.py Mon Jan 01 10:37:56 2018 +1100
+++ b/t.py Tue Apr 10 11:12:54 2018 +0200
@@ -177,6 +177,9 @@
task_id = _hash(text)
self.tasks[task_id] = {'id': task_id, 'text': text}
+ prefixes = _prefixes(self.tasks)
+ print(prefixes[task_id])
+
def edit_task(self, prefix, text):
"""Edit the task with the given prefix.