forked from MarseyWorld/MarseyWorld
fix 500 error
parent
978c3eb880
commit
72013dcb43
|
@ -222,6 +222,7 @@ class User(Base):
|
|||
if not self.has_badge(134):
|
||||
new_badge = Badge(badge_id=134, user_id=self.id)
|
||||
g.db.add(new_badge)
|
||||
g.db.flush()
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in New Issue