From a4fedd22d891110149a4e317985c1d473de62b4d Mon Sep 17 00:00:00 2001 From: Worros Date: Tue, 5 Oct 2010 11:33:16 +0800 Subject: [PATCH 1/3] Test config: add Winamax --- pyfpdb/HUD_config.test.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyfpdb/HUD_config.test.xml b/pyfpdb/HUD_config.test.xml index 5ec16a56..5f9c62cf 100644 --- a/pyfpdb/HUD_config.test.xml +++ b/pyfpdb/HUD_config.test.xml @@ -578,6 +578,7 @@ Left-Drag to Move" + From 65d986d5704f3d0291b54bb286ff0da6d6cd3c8c Mon Sep 17 00:00:00 2001 From: Worros Date: Tue, 5 Oct 2010 16:44:34 +0800 Subject: [PATCH 2/3] Winamax: Remove stud from supported list, remove debug --- pyfpdb/WinamaxToFpdb.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pyfpdb/WinamaxToFpdb.py b/pyfpdb/WinamaxToFpdb.py index cb2c8d2a..14ec847a 100755 --- a/pyfpdb/WinamaxToFpdb.py +++ b/pyfpdb/WinamaxToFpdb.py @@ -152,7 +152,6 @@ class Winamax(HandHistoryConverter): ["ring", "hold", "fl"], ["ring", "hold", "nl"], ["ring", "hold", "pl"], - ["ring", "stud", "fl"], ] def determineGameType(self, handText): @@ -233,7 +232,6 @@ class Winamax(HandHistoryConverter): log.info("readplayerstacks: re is '%s'" % self.re_PlayerInfo) m = self.re_PlayerInfo.finditer(hand.handText) for a in m: - print "DEBUG: found '%s' with '%s'" %(a.group('PNAME'), a.group('CASH')) hand.addPlayer(int(a.group('SEAT')), a.group('PNAME'), a.group('CASH')) From a34b0fab18965a99313abd70a45bac4741a3b560 Mon Sep 17 00:00:00 2001 From: Worros Date: Tue, 5 Oct 2010 17:17:39 +0800 Subject: [PATCH 3/3] Winamax: Fix markStreets regex --- pyfpdb/WinamaxToFpdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/WinamaxToFpdb.py b/pyfpdb/WinamaxToFpdb.py index 14ec847a..ba565609 100755 --- a/pyfpdb/WinamaxToFpdb.py +++ b/pyfpdb/WinamaxToFpdb.py @@ -278,8 +278,8 @@ class Winamax(HandHistoryConverter): # Total pot 0.71€ | Rake 0.04€ m = re.search(r"\*\*\* ANTE\/BLINDS \*\*\*(?P.+(?=\*\*\* FLOP \*\*\*)|.+)" r"(\*\*\* FLOP \*\*\*(?P \[\S\S \S\S \S\S\].+(?=\*\*\* TURN \*\*\*)|.+))?" - r"(\*\*\* TURN \*\*\* \[\S\S \S\S \S\S] (?P\[\S\S\].+(?=\*\*\* RIVER \*\*\*)|.+))?" - r"(\*\*\* RIVER \*\*\* \[\S\S \S\S \S\S \S\S] (?P\[\S\S\].+))?", hand.handText,re.DOTALL) + r"(\*\*\* TURN \*\*\* \[\S\S \S\S \S\S](?P\[\S\S\].+(?=\*\*\* RIVER \*\*\*)|.+))?" + r"(\*\*\* RIVER \*\*\* \[\S\S \S\S \S\S \S\S](?P\[\S\S\].+))?", hand.handText,re.DOTALL) try: hand.addStreets(m)