dict-fix3

This commit is contained in:
Untone 2023-10-13 02:44:26 +03:00
parent eab0e4cc48
commit 3b5836a4f2

View File

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