double coins for WPDcels

pull/116/head
Aevann 2023-02-08 05:36:24 +02:00
parent 4d27bc46d3
commit c22ce9b9e0
1 changed files with 5 additions and 1 deletions

View File

@ -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