From 46eb5c400b3ab24127c2860b04f600c3d7c84d5e Mon Sep 17 00:00:00 2001 From: boyska Date: Sat, 20 Nov 2021 19:21:18 +0100 Subject: [PATCH] change sorting of actions in edit_event --- larigira/dbadmin/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/larigira/dbadmin/__init__.py b/larigira/dbadmin/__init__.py index 18e7c35..319420a 100644 --- a/larigira/dbadmin/__init__.py +++ b/larigira/dbadmin/__init__.py @@ -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",