From a186064465be1f7590ac3606088c360ad4ccf99b Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 17 Sep 2022 14:15:22 +0200 Subject: [PATCH] fix --- files/classes/user.py | 2 +- files/helpers/awards.py | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) 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)