From a79266187efbf87e24829c25d10c05ebeb8ebf8a Mon Sep 17 00:00:00 2001 From: boyska Date: Fri, 9 Sep 2016 19:50:33 +0200 Subject: [PATCH] FIX edit event ui --- larigira/dbadmin/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/larigira/dbadmin/__init__.py b/larigira/dbadmin/__init__.py index a9e6ffb..77c3558 100644 --- a/larigira/dbadmin/__init__.py +++ b/larigira/dbadmin/__init__.py @@ -86,5 +86,6 @@ def change_actions(alarmid): new_actions = [] model = current_app.larigira.monitor.source.model ret = model.update_alarm(int(alarmid), - new_fields={'actions': map(int, new_actions)}) + new_fields={'actions': [int(a) for a in + new_actions]}) return jsonify(dict(updated=alarmid, ret=ret))