Commit 9b52858f authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Sort decisions by date

parent 5ed297b0
......@@ -885,6 +885,8 @@ def list_decisions():
decision for decision in decisions
if search_term.lower() in decision.content.lower()
]
decisions = sorted(decisions, key=lambda d: d.protocol.date, reverse=True)
page = _get_page()
page_count = int(math.ceil(len(decisions) / config.PAGE_LENGTH))
if page >= page_count:
......
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