author-stat-fix-3
All checks were successful
Deploy on push / deploy (push) Successful in 22s

This commit is contained in:
Untone 2024-03-28 22:53:02 +03:00
parent 284250770e
commit e426a2b087

View File

@ -64,7 +64,7 @@ async def get_author(_, _info, slug='', author_id=0):
if isinstance(author, Author):
author_id = author.id
logger.debug(f'found @{slug} with id {author_id}')
if not author.stat or not author.stat.get('rating'):
if not author.stat or not author.stat.get('rating_shouts'):
[author] = get_with_stat(author_query, with_rating=True)
if author:
await set_author_cache(author.dict())