Commit 68b9c014 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Sort todomails by name (in table)

/close #21
parent 38e014df
......@@ -1109,7 +1109,7 @@ def delete_error(error_id):
@app.route("/todomails/list")
@login_required
def list_todomails():
todomails = TodoMail.query.all()
todomails = sorted(TodoMail.query.all(), key=lambda tm: tm.name)
todomails_table = TodoMailsTable(todomails)
return render_template("todomails-list.html", todomails=todomails, todomails_table=todomails_table)
......
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