diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-12-17 00:13:12 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-12-17 00:13:12 +0100 |
commit | b27b96fcfd3630e433cfad3f016916d6e059746d (patch) | |
tree | e74782200ed12200a43f2991e928f471517d8d43 | |
parent | 7809083195b58662a63850e8181fcebd9cad554f (diff) | |
download | todo-b27b96fcfd3630e433cfad3f016916d6e059746d.tar.xz |
todo: sorted_toml → todo_dict
-rw-r--r--[-rwxr-xr-x] | todo | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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']) |