1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 22:44:19 +00:00

Fix bug that prevented alert to be deleted part 2

This commit is contained in:
Lorenzo Balugani 2021-05-27 10:57:37 +02:00
parent 5db3cbb0b2
commit 409eac7465

View file

@ -185,6 +185,9 @@ def page_alert(aid):
if not condition.repository_id:
ext.session.delete(condition)
ext.session.commit()
for notification in alert.notifications:
ext.session.delete(notification)
ext.session.commit()
ext.session.delete(alert)
ext.session.commit()
except Exception as e: