Skip to content

Commit 16c9edc

Browse files
authored
use float
1 parent 8c8ddc8 commit 16c9edc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def invalid_queue(gid_uid):
202202
async def check_idle_verification():
203203
for gu, ts in redis_client.hgetall("queue").items():
204204
time.sleep(random.random())
205-
if time.time() - int(ts) > IDLE_SECONDS:
205+
if time.time() - float(ts) > IDLE_SECONDS:
206206
logging.info("Idle verification for %s", gu)
207207
with contextlib.suppress(Exception):
208208
await delete_captcha(gu)

0 commit comments

Comments
 (0)