author-fix-3
All checks were successful
deploy / deploy (push) Successful in 1m30s

This commit is contained in:
Untone 2023-12-28 01:09:38 +03:00
parent 9968fb27f4
commit 0ba38ac700

View File

@ -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_shouts"] = count_author_shouts_rating(session, author.id)
author.stat["rating_comments"] = count_author_comments_rating(session, author.id) author.stat["rating_comments"] = count_author_comments_rating(session, author.id)
author.stat["commented"] = comments_count author.stat["commented"] = comments_count
return count_author_comments_rating return author
else: else:
return {"error": "cant find author"} return {"error": "cant find author"}