From 2c15852e9b080fc072c090f1abed5c086963ab23 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 11 Oct 2023 22:59:05 +0300 Subject: [PATCH] fix-str --- services/unread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/unread.py b/services/unread.py index 7412be1c..676245a7 100644 --- a/services/unread.py +++ b/services/unread.py @@ -5,7 +5,7 @@ import json async def get_unread_counter(chat_id: str, author_id: int): try: unread = await redis.execute( - "LLEN", f"chats/{chat_id.decode('utf-8')}/unread/{author_id}" + "LLEN", f"chats/{chat_id}/unread/{author_id}" ) if unread: return unread