diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-12-17 00:43:12 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-12-17 00:43:12 +0100 |
commit | 00f996dea89b1a6309907708395b17e9b9021ae9 (patch) | |
tree | 16765aa84c78343d023730610ad0ce58e55bcc0e | |
parent | 7ba2c5ce833cc31e273b40a23f076a9efb944dba (diff) | |
download | todo-00f996dea89b1a6309907708395b17e9b9021ae9.tar.xz |
todo: rename task variable to entry
-rwxr-xr-x | todo | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -121,14 +121,14 @@ def main(): print('todo file: {}'.format(config.todo_file)) for t_id in todo_dict: - task = todo_dict[t_id] - output = first_line(t_id, task) - if 'description' in task: - output += "\n {}".format(task['description']) - if 'url' in task: - output += "\n URL: {}".format(task['url']) - if 'context' in task: - output += "\n Contexts: {}".format(task['context']) + entry = todo_dict[t_id] + output = first_line(t_id, entry) + if 'description' in entry: + output += "\n {}".format(entry['description']) + if 'url' in entry: + output += "\n URL: {}".format(entry['url']) + if 'context' in entry: + output += "\n Contexts: {}".format(entry['context']) print(output) |