Skip to content

Commit

Permalink
use float
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThink authored Aug 26, 2024
1 parent 8c8ddc8 commit 16c9edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def invalid_queue(gid_uid):
async def check_idle_verification():
for gu, ts in redis_client.hgetall("queue").items():
time.sleep(random.random())
if time.time() - int(ts) > IDLE_SECONDS:
if time.time() - float(ts) > IDLE_SECONDS:
logging.info("Idle verification for %s", gu)
with contextlib.suppress(Exception):
await delete_captcha(gu)
Expand Down

0 comments on commit 16c9edc

Please sign in to comment.