This commit is contained in:
parent
ea16de3f1a
commit
c9605cf918
|
@ -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['rating']:
|
||||
if not author.stat or not author.stat.get('rating'):
|
||||
[author] = get_with_stat(author_query, with_rating=True)
|
||||
if author:
|
||||
await set_author_cache(author.dict())
|
||||
|
|
Loading…
Reference in New Issue
Block a user