From 0ba38ac70007dd862a4c67443b74686a4995b5bd Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 28 Dec 2023 01:09:38 +0300 Subject: [PATCH] author-fix-3 --- resolvers/author.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/author.py b/resolvers/author.py index edd2bdf7..cfa9f399 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -198,7 +198,7 @@ async def get_author(_, _info, slug="", author_id=None): author.stat["rating_shouts"] = count_author_shouts_rating(session, author.id) author.stat["rating_comments"] = count_author_comments_rating(session, author.id) author.stat["commented"] = comments_count - return count_author_comments_rating + return author else: return {"error": "cant find author"}