From e426a2b0872a23c03c51a55d9b430d815a91dd4e Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 28 Mar 2024 22:53:02 +0300 Subject: [PATCH] author-stat-fix-3 --- resolvers/author.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/author.py b/resolvers/author.py index d8f6def2..989ffe77 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -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())