master
Aevann1 2022-01-29 07:02:26 +02:00
parent 6bd5d1b521
commit f0c8b59fe5
1 changed files with 2 additions and 1 deletions

View File

@ -75,6 +75,7 @@ class Blackjack:
break break
from_user.coins -= wager_value from_user.coins -= wager_value
from_user.winnings -= wager_value
player_hand, dealer_hand, rest_of_deck = deal_initial_cards() player_hand, dealer_hand, rest_of_deck = deal_initial_cards()
status = 'active' status = 'active'
@ -161,7 +162,7 @@ class Blackjack:
if (reward > 0): if (reward > 0):
user = from_comment.author user = from_comment.author
user.coins += reward user.coins += reward
user.winnings += reward - int(wager) user.winnings += reward
self.db.add(user) self.db.add(user)
self.db.commit() self.db.commit()