Skip to content

Commit

Permalink
fix: add , at end of each line for update of notification_groups
Browse files Browse the repository at this point in the history
  • Loading branch information
sbgap committed Nov 4, 2024
1 parent a2463b9 commit a9d6c32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alerta/database/backends/postgres/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down

0 comments on commit a9d6c32

Please sign in to comment.