Commit 5d6401ac authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

todolists: sort todolist on incomplete status

parent 9050c05f
......@@ -33,7 +33,8 @@ def get_annotated_todolists(incomplete_only=False):
if incomplete_only:
lists = [l for l in lists if l.incomplete_count > 0]
lists = sorted(lists, key=lambda todolist: todolist.incomplete_count == 0)
return lists
Supports Markdown
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