change sorting of actions in edit_event

This commit is contained in:
boyska 2021-11-20 19:21:18 +01:00
parent 1a21495434
commit 46eb5c400b

View file

@ -227,6 +227,7 @@ def edit_event(alarmid):
if alarm is None:
abort(404)
allactions = model.get_all_actions()
allactions.sort(key=lambda a: a.eid, reverse=True)
actions = tuple(model.get_actions_by_alarm(alarm))
return render_template(
"edit_event.html",