race-fix9

This commit is contained in:
Untone 2023-10-13 09:19:27 +03:00
parent 4d79334dbc
commit 48e01b1339

View File

@ -59,6 +59,7 @@ async def load_chats(_, info, limit: int = 50, offset: int = 0):
for cid in cids:
async with lock:
c = await redis.execute("GET", f"chats/{cid}")
print(f"GET result for chat {cid}: {c}") # Add this line
if c:
c = json.loads(c)
c["messages"] = await load_messages(cid, 5, 0)