From 7be88ef08046d17a05697d1834e10b21f25c3dc0 Mon Sep 17 00:00:00 2001 From: Worros Date: Fri, 25 Feb 2011 18:07:14 +0800 Subject: [PATCH] Hand: Sanitise number from Stud bring-in --- pyfpdb/Hand.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyfpdb/Hand.py b/pyfpdb/Hand.py index 6e642c20..727ca00d 100644 --- a/pyfpdb/Hand.py +++ b/pyfpdb/Hand.py @@ -1401,6 +1401,7 @@ Add a complete on [street] by [player] to [amountTo] def addBringIn(self, player, bringin): if player is not None: log.debug(_("Bringin: %s, %s") % (player , bringin)) + bringin = bringin.replace(u',', u'') #some sites have commas bringin = Decimal(bringin) self.bets['THIRD'][player].append(bringin) self.stacks[player] -= bringin