fix 500 error

master
Aevann 2023-01-23 14:44:30 +02:00
parent bdaced6c10
commit d1ee3ba0a3
1 changed files with 1 additions and 1 deletions

View File

@ -1277,7 +1277,7 @@ def unmute_user(v:User, user_id):
def progstack(post_id, v): def progstack(post_id, v):
post = get_post(post_id) post = get_post(post_id)
post.is_approved = PROGSTACK_ID post.is_approved = PROGSTACK_ID
post.realupvotes = floor(target.realupvotes * PROGSTACK_MUL) post.realupvotes = floor(post.realupvotes * PROGSTACK_MUL)
g.db.add(post) g.db.add(post)
cache.delete_memoized(frontlist) cache.delete_memoized(frontlist)
return {"message": "Progressive stack applied!"} return {"message": "Progressive stack applied!"}