diff --git a/db.py b/db.py index d1eee60b..fa931aef 100644 --- a/db.py +++ b/db.py @@ -957,7 +957,7 @@ class Halloween(Base): started = False for h in halloweens: for i in range(7): - if h.first_trigger: + if h.first_trigger is not None: started = True if h[i+1]: completed[i] = True diff --git a/discordbot.py b/discordbot.py index c93d1935..189d2936 100644 --- a/discordbot.py +++ b/discordbot.py @@ -525,7 +525,8 @@ class RoyalDiscordBot(discord.Client): # EASTER EGG, REMOVE LATER if "ghostbusters" in now_playing.plain_text().lower(): halloween = await loop.run_in_executor(executor, session.query(db.Halloween) - .filter_by(royal=enqueuer.royal).one_or_none) + .filter_by(royal=enqueuer.royal) + .one_or_none) halloween[5] = datetime.datetime.now() # END await loop.run_in_executor(executor, session.commit)