This commit is contained in:
parent
4bd5109034
commit
29c02158b7
|
@ -172,7 +172,7 @@ async def get_author(_, _info, slug="", user=None, author_id=None):
|
|||
elif author_id:
|
||||
q = select(Author).where(Author.id == author_id)
|
||||
q = add_author_stat_columns(q)
|
||||
|
||||
print(f"[resolvers.author] SQL: {q}")
|
||||
authors = get_authors_from_query(q)
|
||||
if authors:
|
||||
return authors[0]
|
||||
|
|
Loading…
Reference in New Issue
Block a user