diff --git a/files/classes/user.py b/files/classes/user.py index f64b5cecc..f68fc1ad9 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -52,7 +52,7 @@ class User(Base): profileurl = Column(String) bannerurl = Column(String) house = Column(String, default='') - old_house = Column(String) + old_house = Column(String, default='') patron = Column(Integer, default=0) patron_utc = Column(Integer, default=0) verified = Column(String) diff --git a/files/helpers/awards.py b/files/helpers/awards.py index 54c18b51d..69fd9be78 100644 --- a/files/helpers/awards.py +++ b/files/helpers/awards.py @@ -69,10 +69,9 @@ def award_timers(v, bot=False): if v.bite and v.bite < now: v.bite = None - if v.old_house: - notify_if_not_bot("Your vampire status has ended!") - v.house = v.old_house - v.old_house = '' + notify_if_not_bot("Your vampire status has ended!") + v.house = v.old_house + v.old_house = '' badge = v.has_badge(168) if badge: g.db.delete(badge)