double coins for WPDcels
parent
4d27bc46d3
commit
c22ce9b9e0
|
@ -91,8 +91,12 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
|
||||||
abort(400)
|
abort(400)
|
||||||
existing = existing.one_or_none()
|
existing = existing.one_or_none()
|
||||||
|
|
||||||
|
if SITE_NAME == 'WPD':
|
||||||
|
coin_mult *= 2
|
||||||
|
|
||||||
if IS_FISTMAS():
|
if IS_FISTMAS():
|
||||||
coin_mult = 2
|
coin_mult *= 2
|
||||||
|
|
||||||
coin_value = coin_delta * coin_mult
|
coin_value = coin_delta * coin_mult
|
||||||
|
|
||||||
if existing and existing.vote_type == new: return "", 204
|
if existing and existing.vote_type == new: return "", 204
|
||||||
|
|
Loading…
Reference in New Issue