mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 04:54:18 +00:00
Fix bug that prevented repos to be deleted part 2
This commit is contained in:
parent
e1024af599
commit
c5f5fe2b55
1 changed files with 5 additions and 0 deletions
|
@ -203,6 +203,11 @@ def page_repository(rid):
|
|||
ext.session.commit()
|
||||
# Deleting conditions...
|
||||
for condition in repository.conditions:
|
||||
for c in condition.tweets:
|
||||
ext.session.delete(c)
|
||||
for c in condition.alerts:
|
||||
ext.session.delete(c)
|
||||
ext.session.commit()
|
||||
ext.session.delete(condition)
|
||||
ext.session.commit()
|
||||
# Deleting Alerts...
|
||||
|
|
Loading…
Reference in a new issue