1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
This commit is contained in:
Steffo 2018-10-07 23:26:36 +02:00
parent f2d51e7276
commit 700f32d345
2 changed files with 3 additions and 2 deletions

2
db.py
View file

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

View file

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