From d3b3bfff19d151f55746ec6dc8de04c184bd3356 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 13 Dec 2021 22:17:39 +0200 Subject: [PATCH] fsddsf --- files/routes/votes.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/files/routes/votes.py b/files/routes/votes.py index 1e80d21d9..2990b8718 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -91,7 +91,9 @@ def api_vote_post(post_id, new, v): existing.vote_type = new g.db.add(existing) elif existing.vote_type != 0 and new == 0: - post.author.coins -= 2 + if post.created_utc > 1639302300: post.author.coins -= 2 + else: post.author.coins -= 1 + post.author.coins -= amount post.author.truecoins -= 1 g.db.add(post.author) g.db.delete(existing) @@ -159,7 +161,8 @@ def api_vote_comment(comment_id, new, v): existing.vote_type = new g.db.add(existing) elif existing.vote_type != 0 and new == 0: - comment.author.coins -= 2 + if comment.created_utc > 1639302300: comment.author.coins -= 2 + else: comment.author.coins -= 1 comment.author.truecoins -= 1 g.db.add(comment.author) g.db.delete(existing)