diff --git a/files/assets/js/comments+submission_listing.js b/files/assets/js/comments+submission_listing.js index 0b252ed2c..537af66f6 100644 --- a/files/assets/js/comments+submission_listing.js +++ b/files/assets/js/comments+submission_listing.js @@ -100,8 +100,6 @@ function bet_vote(t, oid) { const scoretext = document.getElementById('option-' + oid); const score = Number(scoretext.textContent); scoretext.textContent = score + 1; - - document.getElementById("user-coins-amount").innerText = parseInt(document.getElementById("user-coins-amount").innerText) - 200; } ); } diff --git a/files/classes/submission.py b/files/classes/submission.py index 72fcfcf90..d3819bdfc 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -298,7 +298,7 @@ class Submission(Base): option_body += f'''>" if o.exclusive == 3: diff --git a/files/routes/polls.py b/files/routes/polls.py index 1f7570d43..7dfc01b0d 100644 --- a/files/routes/polls.py +++ b/files/routes/polls.py @@ -25,8 +25,8 @@ def vote_option(option_id, v): if option.exclusive == 2: if option.post.total_bet_voted(v): abort(403, "You can't participate in a closed bet!") - if not v.charge_account('coins', POLL_BET_COINS): - abort(400, f"You don't have {POLL_BET_COINS} coins!") + if not v.charge_account('combined', POLL_BET_COINS): + abort(400, f"You don't have {POLL_BET_COINS} coins or marseybux!") g.db.add(v) autojanny = get_account(AUTOJANNY_ID) autojanny.pay_account('coins', POLL_BET_COINS)