From c22ce9b9e00e2a4aa2022739dbaa484594b97f93 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 8 Feb 2023 05:36:24 +0200 Subject: [PATCH] double coins for WPDcels --- files/routes/votes.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/files/routes/votes.py b/files/routes/votes.py index 52a34078f..83e5e2fb8 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -91,8 +91,12 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): abort(400) existing = existing.one_or_none() + if SITE_NAME == 'WPD': + coin_mult *= 2 + if IS_FISTMAS(): - coin_mult = 2 + coin_mult *= 2 + coin_value = coin_delta * coin_mult if existing and existing.vote_type == new: return "", 204