Hand: Sanitise number from Stud bring-in

This commit is contained in:
Worros 2011-02-25 18:07:14 +08:00
parent 890ebb4e02
commit 7be88ef080

View File

@ -1401,6 +1401,7 @@ Add a complete on [street] by [player] to [amountTo]
def addBringIn(self, player, bringin): def addBringIn(self, player, bringin):
if player is not None: if player is not None:
log.debug(_("Bringin: %s, %s") % (player , bringin)) log.debug(_("Bringin: %s, %s") % (player , bringin))
bringin = bringin.replace(u',', u'') #some sites have commas
bringin = Decimal(bringin) bringin = Decimal(bringin)
self.bets['THIRD'][player].append(bringin) self.bets['THIRD'][player].append(bringin)
self.stacks[player] -= bringin self.stacks[player] -= bringin