From d1ee3ba0a355b2bda902ccac10feeb00b328b2f8 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 23 Jan 2023 14:44:30 +0200 Subject: [PATCH] fix 500 error --- files/routes/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 10d708c74..17e8b0ad7 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1277,7 +1277,7 @@ def unmute_user(v:User, user_id): def progstack(post_id, v): post = get_post(post_id) post.is_approved = PROGSTACK_ID - post.realupvotes = floor(target.realupvotes * PROGSTACK_MUL) + post.realupvotes = floor(post.realupvotes * PROGSTACK_MUL) g.db.add(post) cache.delete_memoized(frontlist) return {"message": "Progressive stack applied!"}