redis-set-result-fix
This commit is contained in:
parent
a148e1b1ab
commit
723a0a2818
|
@ -49,7 +49,7 @@ async def load_chats(_, info, limit: int = 50, offset: int = 0):
|
|||
cids = (await redis.execute("SMEMBERS", f"chats_by_author/{author_id}")) or []
|
||||
members_online = (await redis.execute("SMEMBERS", "authors-online")) or []
|
||||
await redis.execute('EXEC')
|
||||
cids = cids[offset:(offset + limit)]
|
||||
cids = list(cids)[offset:(offset + limit)]
|
||||
chats = []
|
||||
lock = asyncio.Lock()
|
||||
if len(cids) == 0:
|
||||
|
|
Loading…
Reference in New Issue
Block a user