master
Aevann1 2022-09-17 14:15:22 +02:00
parent 89c7599cc7
commit a186064465
2 changed files with 4 additions and 5 deletions

View File

@ -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)

View File

@ -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)