fix 500 error

master
Aevann1 2022-09-17 14:12:30 +02:00
parent 24f7e30389
commit 0c0a612f53
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ def award_timers(v, bot=False):
if v.old_house: if v.old_house:
notify_if_not_bot("Your vampire status has ended!") notify_if_not_bot("Your vampire status has ended!")
v.house = v.old_house v.house = v.old_house
v.old_house = None v.old_house = ''
badge = v.has_badge(168) badge = v.has_badge(168)
if badge: g.db.delete(badge) if badge: g.db.delete(badge)

View File

@ -276,7 +276,7 @@ def settings_profile_post(v):
elif v.procoins >= cost: v.procoins -= cost elif v.procoins >= cost: v.procoins -= cost
else: abort(403) else: abort(403)
if house == "None": house = None if house == "None": house = ''
v.house = house v.house = house
if v.house == "Vampire": if v.house == "Vampire":