From b03ac825b6e8725c1e8a8b4bb6b5bff554ae5210 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 16 Oct 2023 19:13:39 +0300 Subject: [PATCH] unread-fix3 --- services/unread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/unread.py b/services/unread.py index d0587021..0d72accc 100644 --- a/services/unread.py +++ b/services/unread.py @@ -12,6 +12,6 @@ async def get_total_unread_counter(author_id: int) -> int: chats_set = await redis.execute("SMEMBERS", f"chats_by_author/{author_id}") unread = 0 for chat_id in list(chats_set): - n = await get_unread_counter(chat_id.decode("utf-8"), author_id) + n = await get_unread_counter(chat_id, author_id) unread += n return unread