Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jelle van der Waa
Archweb
Commits
5d6401ac
Commit
5d6401ac
authored
Aug 11, 2018
by
Jelle van der Waa
🚧
Browse files
todolists: sort todolist on incomplete status
parent
9050c05f
Changes
1
Hide whitespace changes
Inline
Side-by-side
todolists/utils.py
View file @
5d6401ac
...
...
@@ -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
]
else
:
lists
=
sorted
(
lists
,
key
=
lambda
todolist
:
todolist
.
incomplete_count
==
0
)
return
lists
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment