mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-26 15:04:18 +00:00
Fix bug that prevented alert to be deleted part 2
This commit is contained in:
parent
5db3cbb0b2
commit
409eac7465
1 changed files with 3 additions and 0 deletions
|
@ -185,6 +185,9 @@ def page_alert(aid):
|
||||||
if not condition.repository_id:
|
if not condition.repository_id:
|
||||||
ext.session.delete(condition)
|
ext.session.delete(condition)
|
||||||
ext.session.commit()
|
ext.session.commit()
|
||||||
|
for notification in alert.notifications:
|
||||||
|
ext.session.delete(notification)
|
||||||
|
ext.session.commit()
|
||||||
ext.session.delete(alert)
|
ext.session.delete(alert)
|
||||||
ext.session.commit()
|
ext.session.commit()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in a new issue