Actually call total_bet_voted in betting poll.

Currently always truthy because it's a non-None first-class function.
pull/2/head
Snakes 2022-11-20 19:55:34 -05:00
parent 81682c7a28
commit 1f234ef67d
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ def vote_option(option_id, v):
abort(403, f"You need to be a member of House {sub.capitalize()} to vote on polls in /h/{sub}")
if option.exclusive == 2:
if option.post.total_bet_voted:
if option.post.total_bet_voted(v):
abort(403, "You can't bet on a closed poll!")
if not v.charge_account('coins', POLL_BET_COINS):
abort(400, f"You don't have {POLL_BET_COINS} coins!")