mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
o8kjkj
This commit is contained in:
parent
f2d51e7276
commit
700f32d345
2 changed files with 3 additions and 2 deletions
2
db.py
2
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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue