From faa97d27c215e603e681a7a8e810eda809fb4ac9 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 16 Oct 2023 18:56:03 +0300 Subject: [PATCH] unread-fix --- services/unread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/unread.py b/services/unread.py index abe627e0..9132c32f 100644 --- a/services/unread.py +++ b/services/unread.py @@ -9,7 +9,7 @@ async def get_unread_counter(chat_id: str, author_id: int) -> int: async def get_total_unread_counter(author_id: int) -> int: - chats = await redis.execute("GET", f"chats_by_author/{author_id}") + chats = await redis.execute("SMEMBERS", f"chats_by_author/{author_id}") unread = 0 if chats: chats = json.loads(chats)