From a9d6c324b96cea86384f28c5a30cc4b7078bbf69 Mon Sep 17 00:00:00 2001 From: sbgap Date: Mon, 4 Nov 2024 10:08:00 +0100 Subject: [PATCH] fix: add , at end of each line for update of notification_groups --- alerta/database/backends/postgres/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alerta/database/backends/postgres/base.py b/alerta/database/backends/postgres/base.py index fa810eafc..2a8f1a78d 100644 --- a/alerta/database/backends/postgres/base.py +++ b/alerta/database/backends/postgres/base.py @@ -1295,11 +1295,12 @@ def update_notification_group(self, id, **kwargs): if 'name' in kwargs: update += 'name=%(name)s, ' if 'users' in kwargs: - update += 'users=%(users)s ' + update += 'users=%(users)s, ' if 'phoneNumbers' in kwargs: update += 'phone_numbers=%(phoneNumbers)s, ' if 'mails' in kwargs: update += 'mails=%(mails)s, ' + update = update[0:-2] update += """ WHERE id=%(id)s RETURNING *