rating-fix-2
All checks were successful
Deploy on push / deploy (push) Successful in 25s

This commit is contained in:
2024-03-29 02:29:16 +03:00
parent 9cc0c5b011
commit 3f68e25230
2 changed files with 25 additions and 10 deletions

View File

@@ -135,9 +135,9 @@ def get_with_stat(q, with_rating=False):
stat['comments'] = cols[4]
if with_rating:
logger.debug(cols)
stat['rating'] = cols[6] - cols[7]
stat['rating_shouts'] = cols[8] - cols[9]
stat['rating_comments'] = cols[10] - cols[11]
stat['rating'] = cols[6]
stat['rating_shouts'] = cols[7]
stat['rating_comments'] = cols[8]
entity.stat = stat
records.append(entity)
except Exception as exc: