Merge pull request #21 from brennerm/return-id-after-adding
add printing of id after adding a task
author |
Steve Losh <steve@stevelosh.com> |
date |
Sat, 11 Apr 2020 11:34:13 -0400 |
parents |
c92a0241e9c9
(current diff)
b3ab82ada837
(diff)
|
children |
831123b0359f
|
branches/tags |
(none) |
files |
t.py |
Changes
--- a/t.py Sat Apr 11 11:33:49 2020 -0400
+++ b/t.py Sat Apr 11 11:34:13 2020 -0400
@@ -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.