This commit is contained in:
Untone 2023-10-11 22:59:05 +03:00
parent a14c70e8c7
commit 2c15852e9b

View File

@ -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