From bc755f3e5f2736435c1552c8cf4127bf1eb29a8e Mon Sep 17 00:00:00 2001 From: Worros Date: Mon, 23 Aug 2010 13:23:39 +0800 Subject: [PATCH] OnGame: Fix re_CollectPot So that it actually finds the player that has won money --- pyfpdb/OnGameToFpdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/OnGameToFpdb.py b/pyfpdb/OnGameToFpdb.py index 088920d3..ee281c1d 100755 --- a/pyfpdb/OnGameToFpdb.py +++ b/pyfpdb/OnGameToFpdb.py @@ -132,8 +132,8 @@ class OnGame(HandHistoryConverter): self.re_ShowdownAction = re.compile('(?P.*) shows \[ (?P.+) \]') # TODO: read SUMMARY correctly for collected pot stuff. - #Uchilka, bets $11.75, collects $23.04, net $11.29 - self.re_CollectPot = re.compile('(?P.*), bets.+, collects \$(?P\d*\.?\d*), net.* ') + # Main pot: 6.75 won by player3 (6.45) + self.re_CollectPot = re.compile('Main pot: (?P\d*\.?\d*) won by %(PLYR)s' % subst) self.re_sitsOut = re.compile('(?P.*) sits out') def readSupportedGames(self):