author-id-fix
All checks were successful
Deploy on push / deploy (push) Successful in 1m21s

This commit is contained in:
Untone 2024-06-05 18:18:03 +03:00
parent 713fb4d62b
commit 67636e6d17

View File

@ -76,7 +76,8 @@ async def get_cached_author(author_id: int, get_with_stat):
async def get_cached_author_by_user_id(user_id: str, get_with_stat):
author_id = await redis.execute("GET", f"author:user:{user_id}")
author_dict = await redis.execute("GET", f"author:user:{user_id}")
author_id = author_dict.get("id")
if author_id:
return await get_cached_author(int(author_id), get_with_stat)