From 8f532b0023c59c07d0f482ec7227cdb719deed1d Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 28 Mar 2024 23:59:53 +0300 Subject: [PATCH] author-stat-fix-9 --- resolvers/stat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resolvers/stat.py b/resolvers/stat.py index 8eb05ca7..b2ac803a 100644 --- a/resolvers/stat.py +++ b/resolvers/stat.py @@ -154,10 +154,10 @@ def get_with_stat(q, with_rating=False): if is_author: stat['comments'] = cols[4] if with_rating: - logger.debug('author, shouts, authors, followers, comments, author_likes, author_dislikes, shouts_likes, shouts_dislikes, comment_likes, comments_dislikes') + # logger.debug('author, shouts, authors, followers, comments, author_likes, author_dislikes, shouts_likes, shouts_dislikes, comment_likes, comments_dislikes') logger.debug(cols) stat['rating'] = cols[6] - cols[7] - stat['rating_shouts'] = cols[8] - cols[9] + # stat['rating_shouts'] = cols[8] - cols[9] entity.stat = stat records.append(entity) except Exception as exc: