ranking: don't progstack every single post

master
justcool393 2022-11-09 17:18:34 -06:00
parent 8ab77eb0ee
commit 7011c85313
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
elif len(target.body) > 2000:
mul = 1 + len(target.body)/5000
mul = min(mul, 2)
mul = max(mul, 2)
target.realupvotes *= mul
g.db.add(target)