From 4bd51090340e713ca9b9a4e40d89aaa851c56c49 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 13 Dec 2023 16:27:51 +0300 Subject: [PATCH] debug-authors --- resolvers/author.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resolvers/author.py b/resolvers/author.py index ac0728a7..e8779a65 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -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"}