# HG changeset patch # User Max Brenner # Date 1523351574 -7200 # Node ID b3ab82ada8378285d540426475ac672c59686ae5 # Parent b183c1d51530d9e85d4d830831babaf3c5a08c03 add printing of id after adding a task diff -r b183c1d51530 -r b3ab82ada837 t.py --- 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.