Commit 4147d780 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Use add_todos instead of iterating over todo list to add todo items.

parent f60572d2
......@@ -39,9 +39,7 @@ class SortCommand(Command):
sorted_todos = sorter.sort(self.todolist.todos())
self.todolist.erase()
for todo in sorted_todos:
self.todolist.add_todo(todo)
self.todolist.add_todos(sorted_todos)
def usage(self):
return """Synopsis: sort [expression]"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment