From b27b96fcfd3630e433cfad3f016916d6e059746d Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 17 Dec 2014 00:13:12 +0100 Subject: todo: sorted_toml → todo_dict MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- todo | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) mode change 100755 => 100644 todo diff --git a/todo b/todo old mode 100755 new mode 100644 index 890213b..153bda6 --- 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']) -- cgit v1.2.3-54-g00ecf