This commit is contained in:
Alex Stefanov 2021-11-11 18:50:23 +02:00 committed by GitHub
parent 9c713a0980
commit a33311e2b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ def setup(bot):
@tasks.loop(seconds=60)
async def remind_worker():
csr = bot.database.execute("SELECT * FROM reminders WHERE expired = 0 AND remind_timestamp < ?", (util.timestamp(),))
csr = bot.database.execute("SELECT * FROM reminders WHERE expired = 0 AND remind_timestamp < ?", (util.timestamp()+30,))
to_expire = []
async with csr as cursor:
async for row in cursor:
@ -117,4 +117,4 @@ def setup(bot):
bot.remind_worker = remind_worker
def teardown(bot):
bot.remind_worker.cancel()
bot.remind_worker.cancel()