From 7011c85313d3b7c26292d22bb499a8a38f656036 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Wed, 9 Nov 2022 17:18:34 -0600 Subject: [PATCH] ranking: don't progstack every single post --- files/routes/votes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/votes.py b/files/routes/votes.py index 3e1b13a9b..bf622d03a 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -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)