From 04a878a8c40daf4d30caa1256bf1f66f569b3fb1 Mon Sep 17 00:00:00 2001 From: TLSM Date: Mon, 30 May 2022 08:13:11 -0400 Subject: [PATCH] Make betting polls respect can_gamble. --- files/classes/submission.py | 2 +- files/routes/votes.py | 1 + files/templates/settings_filters.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/files/classes/submission.py b/files/classes/submission.py index 87f73b8f3..9ea0b3edf 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -414,7 +414,7 @@ class Submission(Base): for c in self.bet_options: body += f'''
200) or self.total_bet_voted(v): body += " disabled " + if not (v and v.coins > 200) or self.total_bet_voted(v) or not v.can_gamble: body += " disabled " body += f'''>
- Disable to prevent use of blackjack, slots, treasure chests, and the lottery. + Disable to prevent use of blackjack, slots, treasure chests, the lottery, and betting polls.