This commit is contained in:
Untone 2023-10-11 15:41:04 +03:00
parent 09d77bb1d1
commit 9c651a6d72

View File

@ -14,6 +14,7 @@ async def get_unread_counter(chat_id: str, author_id: int):
async def get_total_unread_counter(author_id: int):
print(f"[services.unread] get_total_unread_counter({author_id})")
chats = await redis.execute("GET", f"chats_by_author/{author_id}")
unread = 0
if chats: