cv
This commit is contained in:
parent
68639ad91c
commit
95cb0f3ce8
1 changed files with 2 additions and 4 deletions
|
@ -1,6 +1,5 @@
|
||||||
from functools import reduce
|
from functools import reduce
|
||||||
from json.encoder import INFINITY
|
from json.encoder import INFINITY
|
||||||
from locale import currency
|
|
||||||
import random
|
import random
|
||||||
from math import floor
|
from math import floor
|
||||||
|
|
||||||
|
@ -171,8 +170,7 @@ class Blackjack:
|
||||||
|
|
||||||
setattr(user, kind, currency_value + wager_value + reward)
|
setattr(user, kind, currency_value + wager_value + reward)
|
||||||
|
|
||||||
if kind == 'coins':
|
user.winnings += reward
|
||||||
user.winnings += reward
|
|
||||||
|
|
||||||
self.db.add(user)
|
self.db.add(user)
|
||||||
self.db.commit()
|
self.db.commit()
|
Loading…
Add table
Add a link
Reference in a new issue