change sorting of actions in edit_event
This commit is contained in:
parent
1a21495434
commit
46eb5c400b
1 changed files with 1 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue