1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +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 started = False
for h in halloweens: for h in halloweens:
for i in range(7): for i in range(7):
if h.first_trigger: if h.first_trigger is not None:
started = True started = True
if h[i+1]: if h[i+1]:
completed[i] = True completed[i] = True

View file

@ -525,7 +525,8 @@ class RoyalDiscordBot(discord.Client):
# EASTER EGG, REMOVE LATER # EASTER EGG, REMOVE LATER
if "ghostbusters" in now_playing.plain_text().lower(): if "ghostbusters" in now_playing.plain_text().lower():
halloween = await loop.run_in_executor(executor, session.query(db.Halloween) 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() halloween[5] = datetime.datetime.now()
# END # END
await loop.run_in_executor(executor, session.commit) await loop.run_in_executor(executor, session.commit)