aboutsummaryrefslogtreecommitdiffstats
path: root/todo
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-12-17 00:43:12 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-12-17 00:43:12 +0100
commitb2285f759f2a32806c9c898096295e7ca8ff0f46 (patch)
tree302fb8207a1c0f7e761a0ea29789bb0a89daa0e9 /todo
parentc5979ba4bbbc154bca99f31fb9340e40628d5912 (diff)
downloadbin-b2285f759f2a32806c9c898096295e7ca8ff0f46.tar.xz
todo: rename task variable to entry
Diffstat (limited to 'todo')
-rwxr-xr-xtodo16
1 files changed, 8 insertions, 8 deletions
diff --git a/todo b/todo
index 0d9e1b8..ee6b90b 100755
--- a/todo
+++ b/todo
@@ -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)