new-profile-followers
This commit is contained in:
parent
8618e1eff7
commit
cfcb858bba
|
@ -179,8 +179,8 @@ 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")
|
||||||
[result] = local_session().execute(author_query)
|
result = local_session().execute(author_query)
|
||||||
if len(result) > 0:
|
if result:
|
||||||
# logger.debug(result)
|
# logger.debug(result)
|
||||||
[author] = result
|
[author] = result
|
||||||
# logger.debug(author)
|
# logger.debug(author)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user