forked from MarseyWorld/MarseyWorld
remove marsify badge when user turns it off in the settings
parent
45ba326222
commit
a40c367e88
|
@ -104,6 +104,9 @@ def settings_profile_post(v):
|
|||
updated = True
|
||||
v.marsify = int(request.values.get("marsify") == 'true')
|
||||
if v.marsify: badge_grant(user=v, badge_id=170)
|
||||
else:
|
||||
badge = v.has_badge(170)
|
||||
if badge: g.db.delete(badge)
|
||||
|
||||
elif request.values.get("bio") == "":
|
||||
v.bio = None
|
||||
|
|
Loading…
Reference in New Issue