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

This commit is contained in:
Untone 2024-03-28 15:11:08 +03:00
parent e7149e905a
commit 1eb3d54dd0

View File

@ -174,7 +174,9 @@ async def get_author_follows(_, _info, slug='', user=None, author_id=0):
else:
raise ValueError('One of slug, user, or author_id must be provided')
# logger.debug(author_query)
[author] = local_session().execute(author_query)
result = local_session().execute(author_query)
logger.debug(result)
[author] = result
if isinstance(author, Author):
logger.debug(author.dict())
author_id = author.id.scalar()