diff --git a/files/routes/settings.py b/files/routes/settings.py index faae241b1..e28162488 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -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