author-follows-result-type-debug
All checks were successful
Deploy on push / deploy (push) Successful in 22s

This commit is contained in:
2024-03-28 15:43:41 +03:00
parent 72b9bb407d
commit 73c3d47f1b
2 changed files with 3 additions and 2 deletions

View File

@@ -177,7 +177,8 @@ async def get_author_follows(_, _info, slug='', user=None, author_id=0):
result = local_session().execute(author_query)
logger.debug(result)
[author] = result
if isinstance(author, Author):
logger.debug(author)
if author and isinstance(author, Author):
logger.debug(author.dict())
author_id = author.id.scalar()
rkey = f'author:{author_id}:follows-authors'