race-fix10

This commit is contained in:
Untone 2023-10-13 09:27:10 +03:00
parent 48e01b1339
commit 86f47f5c6e

View File

@ -58,6 +58,9 @@ async def load_chats(_, info, limit: int = 50, offset: int = 0):
for cid in cids:
async with lock:
print(cid)
all_chats = await redis.execute("GET", f"chats/{cid}")
print(all_chats)
c = await redis.execute("GET", f"chats/{cid}")
print(f"GET result for chat {cid}: {c}") # Add this line
if c: