author-rating-4
All checks were successful
Deploy on push / deploy (push) Successful in 24s

This commit is contained in:
Untone 2024-03-28 22:31:33 +03:00
parent 2f4019ca6f
commit 0a767a14b6

View File

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