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

@ -44,5 +44,4 @@ class Guilds(db.Model):
def set_unauthUsersBool(self, value):
self.unauth_users = value
db.session.commit()
return self.unauth_users