aboutsummaryrefslogtreecommitdiffstats
path: root/todo
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-12-17 01:06:11 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-12-17 01:06:11 +0100
commit255806e86de8321c3887738225bac5e9802bfac3 (patch)
tree571b63caf25d44e695ee614c68eed7815d3015b8 /todo
parent707db0a7903dd03b0812f625a2f9b87e7927c0e2 (diff)
downloadbin-255806e86de8321c3887738225bac5e9802bfac3.tar.xz
todo: remove unnecessary unsorted intermidiate dict
Diffstat (limited to 'todo')
-rwxr-xr-xtodo4
1 files changed, 1 insertions, 3 deletions
diff --git a/todo b/todo
index a803bba..9e64cf2 100755
--- a/todo
+++ b/todo
@@ -111,9 +111,7 @@ def main():
config = parse_args(arguments)
todo_dict = toml.load(config.todo_file)
-
- unsorted = OrderedDict(sorted(todo_dict.items()))
- todo_dict = sort_dict(unsorted, config.sort_key, config.reverse)
+ todo_dict = sort_dict(todo_dict, config.sort_key, config.reverse)
print('todo file: {}'.format(config.todo_file))
for t_id in todo_dict: