Commit to database on only on request teardown

This commit is contained in:
Jeremy Zhang
2018-01-22 07:52:51 +00:00
parent 2c949d911b
commit 56d25d6ecb
10 changed files with 1 additions and 26 deletions

View File

@ -26,7 +26,6 @@ class UnauthenticatedBans(db.Model):
def liftBan(self, lifter_id):
self.lifter_id = lifter_id
db.session.commit()
return self.lifter_id
def __repr__(self):