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

This commit is contained in:
Untone 2023-12-13 16:27:51 +03:00
parent 359cfb1b75
commit 4bd5109034

View File

@ -96,7 +96,7 @@ def get_authors_from_query(q):
for [author, *stat_columns] in session.execute(q):
author = add_stat(author, stat_columns)
authors.append(author)
print(f"[resolvers.author] get_authors_from_query {authors}")
return authors
@ -175,7 +175,7 @@ async def get_author(_, _info, slug="", user=None, author_id=None):
authors = get_authors_from_query(q)
if authors:
return authors.pop()
return authors[0]
else:
return {"error": "cant find author"}