fix-str
This commit is contained in:
parent
a14c70e8c7
commit
2c15852e9b
|
@ -5,7 +5,7 @@ import json
|
||||||
async def get_unread_counter(chat_id: str, author_id: int):
|
async def get_unread_counter(chat_id: str, author_id: int):
|
||||||
try:
|
try:
|
||||||
unread = await redis.execute(
|
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:
|
if unread:
|
||||||
return unread
|
return unread
|
||||||
|
|
Loading…
Reference in New Issue
Block a user