fix end of peering
This commit is contained in:
parent
7ff736465f
commit
1e0f93bbf2
2 changed files with 5 additions and 3 deletions
|
|
@ -221,9 +221,9 @@ class Item(db.Model):
|
|||
state.db.session.commit()
|
||||
|
||||
def delete(self, commit=True):
|
||||
state.db.session.delete(self)
|
||||
Sort.query.filter_by(item_id=self.id).delete()
|
||||
Transfer.query.filter_by(item_id=self.id).delete()
|
||||
state.db.session.delete(self)
|
||||
if commit:
|
||||
state.db.session.commit()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue