author-follows-result-type-debug
All checks were successful
Deploy on push / deploy (push) Successful in 21s
All checks were successful
Deploy on push / deploy (push) Successful in 21s
This commit is contained in:
parent
73c3d47f1b
commit
7f913050ee
|
@ -173,11 +173,11 @@ async def get_author_follows(_, _info, slug='', user=None, author_id=0):
|
||||||
author_query = author_query.filter(Author.id == author_id)
|
author_query = author_query.filter(Author.id == author_id)
|
||||||
else:
|
else:
|
||||||
raise ValueError('One of slug, user, or author_id must be provided')
|
raise ValueError('One of slug, user, or author_id must be provided')
|
||||||
# logger.debug(author_query)
|
[result] = local_session().execute(author_query)
|
||||||
result = local_session().execute(author_query)
|
if len(result) > 0:
|
||||||
logger.debug(result)
|
#logger.debug(result)
|
||||||
[author] = result
|
[author] = result
|
||||||
logger.debug(author)
|
#logger.debug(author)
|
||||||
if author and isinstance(author, Author):
|
if author and isinstance(author, Author):
|
||||||
logger.debug(author.dict())
|
logger.debug(author.dict())
|
||||||
author_id = author.id.scalar()
|
author_id = author.id.scalar()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user