From bbdbe7e47dd0bcb9457ec4856a5252097425382a Mon Sep 17 00:00:00 2001 From: Worros Date: Sat, 14 Mar 2009 05:10:13 +0900 Subject: [PATCH 1/4] Remove TODO for previous patch --- pyfpdb/fpdb_import.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pyfpdb/fpdb_import.py b/pyfpdb/fpdb_import.py index 8c4bd0f9..ef0894e3 100644 --- a/pyfpdb/fpdb_import.py +++ b/pyfpdb/fpdb_import.py @@ -226,7 +226,6 @@ class Importer: conv = None # Load filter, process file, pass returned filename to import_fpdb_file - # TODO: Shouldn't we be able to use some sort of lambda or something to just call a Python object by whatever name we specify? then we don't have to hardcode them, print "converting %s" % file hhbase = self.config.get_import_parameters().get("hhArchiveBase") hhbase = os.path.expanduser(hhbase) From d3103f099e7a0abd982cb5e6f1e11f4eb46eac76 Mon Sep 17 00:00:00 2001 From: Worros Date: Sat, 14 Mar 2009 06:42:20 +0900 Subject: [PATCH 2/4] Make Stars Badugi recognised --- pyfpdb/PokerStarsToFpdb.py | 5 +++-- pyfpdb/test_FullTilt.py | 2 +- pyfpdb/test_PokerStars.py | 5 ++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pyfpdb/PokerStarsToFpdb.py b/pyfpdb/PokerStarsToFpdb.py index 05027121..8c2e4884 100755 --- a/pyfpdb/PokerStarsToFpdb.py +++ b/pyfpdb/PokerStarsToFpdb.py @@ -69,7 +69,7 @@ from HandHistoryConverter import * class PokerStars(HandHistoryConverter): # Static regexes - re_GameInfo = re.compile('PokerStars Game #(?P[0-9]+):\s+(HORSE)? \(?(?PHold\'em|Razz|7 Card Stud|Omaha Hi/Lo) (?PNo Limit|Limit|Pot Limit),? \(?(?P\$|)?(?P[.0-9]+)/\$?(?P[.0-9]+)\) - (?P.*$)', re.MULTILINE) + re_GameInfo = re.compile("PokerStars Game #(?P[0-9]+):\s+(HORSE)? \(?(?PHold\'em|Razz|7 Card Stud|Omaha Hi/Lo|Badugi) (?PNo Limit|Limit|Pot Limit),? \(?(?P\$|)?(?P[.0-9]+)/\$?(?P[.0-9]+)\) - (?P.*$)", re.MULTILINE) re_SplitHands = re.compile('\n\n+') re_HandInfo = re.compile("^Table \'(?P[- a-zA-Z]+)\'(?P.+?$)?", re.MULTILINE) re_Button = re.compile('Seat #(?P