aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-12-17 00:13:12 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-12-17 00:13:12 +0100
commitf7506e591bb0c2ec7912a27d15697e3e2193b7b1 (patch)
treebf48bd574f89da7ee4f4852452d73cb9de3df9d2
parent816192514e52c4f90756df9cc17a88b0f016afff (diff)
downloadbin-f7506e591bb0c2ec7912a27d15697e3e2193b7b1.tar.xz
todo: sorted_toml → todo_dict
-rw-r--r--[-rwxr-xr-x]todo8
1 files changed, 4 insertions, 4 deletions
diff --git a/todo b/todo
index 890213b..153bda6 100755..100644
--- a/todo
+++ b/todo
@@ -79,12 +79,12 @@ def main():
todo_dict = toml.load(config.todo_file)
unsorted = OrderedDict(sorted(todo_dict.items()))
- sorted_toml = OrderedDict(sort_toml(unsorted, config.sort_key, config.reverse))
+ todo_dict = OrderedDict(sort_toml(unsorted, config.sort_key, config.reverse))
- print(sorted_toml)
+ print(todo_dict)
- for t_id in sorted_toml:
- task = sorted_toml[t_id]
+ for t_id in todo_dict:
+ task = todo_dict[t_id]
output = "{}. ".format(t_id)
if 'priority' in task:
output += "({}) ".format(task['priority'])