fix 500 error

master
Aevann1 2022-07-04 03:05:26 +02:00
parent 978c3eb880
commit 72013dcb43
1 changed files with 1 additions and 0 deletions

View File

@ -222,6 +222,7 @@ class User(Base):
if not self.has_badge(134): if not self.has_badge(134):
new_badge = Badge(badge_id=134, user_id=self.id) new_badge = Badge(badge_id=134, user_id=self.id)
g.db.add(new_badge) g.db.add(new_badge)
g.db.flush()
return True return True
return False return False