From bdbcf19b064b1c4f41ae2f685da506bf691f9433 Mon Sep 17 00:00:00 2001 From: Gerko de Roo Date: Thu, 4 Mar 2010 14:11:50 +0100 Subject: [PATCH] Player stat fix for PartyPoker When placing a uncalled bet (like all-in) the uncalled part is put in a sitepot Therefore the player exist 2* in collected. The uncalled part of the bet was subtracted twice for collected and collectees. --- pyfpdb/PartyPokerToFpdb.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyfpdb/PartyPokerToFpdb.py b/pyfpdb/PartyPokerToFpdb.py index f83c8672..5cb170e6 100755 --- a/pyfpdb/PartyPokerToFpdb.py +++ b/pyfpdb/PartyPokerToFpdb.py @@ -261,6 +261,7 @@ class PartyPoker(HandHistoryConverter): if v[0] in self.pot.returned: self.collected[i][1] = Decimal(v[1]) - self.pot.returned[v[0]] self.collectees[v[0]] -= self.pot.returned[v[0]] + self.pot.returned[v[0]] = 0 return origTotalPot() return totalPot instancemethod = type(hand.totalPot)