From 700f32d3453416b706caa96aa4ec4d899b4742e3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 7 Oct 2018 23:26:36 +0200 Subject: [PATCH] o8kjkj --- db.py | 2 +- discordbot.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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)