Fix temprole expires_at check
This commit is contained in:
parent
34983b0f19
commit
24ff4e69a2
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ async def remove(bot: Snake) -> None:
|
||||||
"""
|
"""
|
||||||
logger.debug("Starting Task-remove")
|
logger.debug("Starting Task-remove")
|
||||||
while True:
|
while True:
|
||||||
max_ts = datetime.now(tz=timezone.utc) + timedelta(minutes=55)
|
max_ts = datetime.now(tz=timezone.utc) + timedelta(minutes=1)
|
||||||
temproles = Temprole.find(q(expires_at__lte=max_ts, id__nin=queue))
|
temproles = Temprole.find(q(expires_at__lte=max_ts, id__nin=queue))
|
||||||
async for temprole in temproles:
|
async for temprole in temproles:
|
||||||
if temprole.id in queue:
|
if temprole.id in queue:
|
||||||
|
|
Loading…
Add table
Reference in a new issue