From f91e6d1d69a4eb35b4a5f34868674b9e0876afd2 Mon Sep 17 00:00:00 2001 From: Eric Blade Date: Thu, 27 Aug 2009 02:29:44 -0500 Subject: [PATCH] AbsoluteToFpdb: fix for HU and FL tables (need to verify data coming in for PL and NL tables now, as that required code changes to blind handling as well), also likely fixes bug #14 where HU NL hands would not convert properly (also still need to test) --- pyfpdb/AbsoluteToFpdb.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pyfpdb/AbsoluteToFpdb.py b/pyfpdb/AbsoluteToFpdb.py index e8a77d2b..bba33654 100644 --- a/pyfpdb/AbsoluteToFpdb.py +++ b/pyfpdb/AbsoluteToFpdb.py @@ -41,7 +41,8 @@ class Absolute(HandHistoryConverter): #Seat 6 - FETS63 ($0.75 in chips) #Board [10s 5d Kh Qh 8c] - re_GameInfo = re.compile(ur"^Stage #([0-9]+): (?PHoldem|) (?PNo Limit|Pot Limit|Normal) (?P\$| €|)(?P[0-9]*[.0-9]+)", re.MULTILINE) + re_GameInfo = re.compile(ur"^Stage #([0-9]+): (?PHoldem|)(?: \(1 on 1\)|)? (?PNo Limit|Pot Limit|Normal) (?P\$| €|)(?P\d*.\d\d)/?(?:\$| €|)(?P\d*.\d\d)? -", re.MULTILINE) + # TODO: can set max seats via (1 on 1) to a known 2 .. re_HandInfo = re.compile(ur"^Stage #(?P[0-9]+): .*(?P\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d).*\nTable: (?P.*) \(Real Money\)", re.MULTILINE) re_Button = re.compile(ur"Seat #(?P