This commit is contained in:
Dantenerosas 2023-09-26 00:19:08 +03:00
parent a03b9b1a0b
commit 881af00006

View File

@ -63,7 +63,6 @@ queue_name -> {
async def is_task_already_done_or_exist(redis: RedisClient, link: str): async def is_task_already_done_or_exist(redis: RedisClient, link: str):
messages = await redis.get_task_done_queue() messages = await redis.get_task_done_queue()
temp = [json.loads(msg) for msg in messages] temp = [json.loads(msg) for msg in messages]
print(temp)
tasks = [ tasks = [
msg for msg in temp msg for msg in temp
if msg["link"] == link if msg["link"] == link