From 7348e5d9fe9e0e5f1d43806a355d534dd56f390c Mon Sep 17 00:00:00 2001 From: Untone Date: Fri, 13 Oct 2023 15:13:01 +0300 Subject: [PATCH] unread-counter-fix2 --- services/unread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/unread.py b/services/unread.py index c679ef9f..013234c7 100644 --- a/services/unread.py +++ b/services/unread.py @@ -18,6 +18,6 @@ async def get_total_unread_counter(author_id: int): chats = await redis.execute("SMEMBERS", f"chats_by_author/{author_id}") unread = 0 for chat_id in list(chats): - 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