From 0a767a14b607006d7cc1a3d83c625517f68a0dc5 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 28 Mar 2024 22:31:33 +0300 Subject: [PATCH] author-rating-4 --- resolvers/stat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resolvers/stat.py b/resolvers/stat.py index 5fda10ed..54b3a686 100644 --- a/resolvers/stat.py +++ b/resolvers/stat.py @@ -154,8 +154,8 @@ def get_with_stat(q, with_rating=False): stat['comments'] = cols[4] if with_rating: logger.debug(cols) - entity.stat['rating'] = cols[5] - cols[6] - entity.stat['rating_shouts'] = cols[7] - cols[8] + stat['rating'] = cols[5] - cols[6] + stat['rating_shouts'] = cols[7] - cols[8] entity.stat = stat records.append(entity) except Exception as exc: