debug-authors-2
All checks were successful
deploy / deploy (push) Successful in 1m30s

This commit is contained in:
Untone 2023-12-13 16:32:02 +03:00
parent 4bd5109034
commit 29c02158b7

View File

@ -172,7 +172,7 @@ async def get_author(_, _info, slug="", user=None, author_id=None):
elif author_id: elif author_id:
q = select(Author).where(Author.id == author_id) q = select(Author).where(Author.id == author_id)
q = add_author_stat_columns(q) q = add_author_stat_columns(q)
print(f"[resolvers.author] SQL: {q}")
authors = get_authors_from_query(q) authors = get_authors_from_query(q)
if authors: if authors:
return authors[0] return authors[0]