Skip winners on 0 and 00

master
Outrun Colors 2022-09-12 22:14:55 -05:00
parent 947d097087
commit a7ab4523de
No known key found for this signature in database
GPG Key ID: 0426976DCEFE6073
2 changed files with 9 additions and 2 deletions

View File

@ -157,8 +157,13 @@ def spin_roulette_wheel():
if len(participants) > 0:
number = randint(0, 37) # 37 is 00
winners, payouts, rewards_by_game_id = determine_roulette_winners(
number, bets)
if number > 0 and number < 37: # 0 and 00 do not pay anything
winners, payouts, rewards_by_game_id = determine_roulette_winners(number, bets)
else:
winners = []
payouts = {}
rewards_by_game_id = {}
# Pay out to the winners and send a notification.
for user_id in winners:

View File

@ -129,6 +129,8 @@
<i class="far fa-user fa-sm mr-1"></i>
<span class="board-chat-count">0</span>
</span>
{% include "casino/roulette_screen.html" %}
</div>
<div id="chat-line-template" class="d-none">