From 323b0856b6e413601d28c6c783a0378fa9ba9dfc Mon Sep 17 00:00:00 2001 From: Worros Date: Thu, 11 Nov 2010 18:25:06 +0800 Subject: [PATCH] PSS: Fix Stars summary import to deal with slightly modified format Stars now includes the currency (ie. USD) on two lines --- pyfpdb/PokerStarsSummary.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyfpdb/PokerStarsSummary.py b/pyfpdb/PokerStarsSummary.py index cfa33322..8ee68712 100644 --- a/pyfpdb/PokerStarsSummary.py +++ b/pyfpdb/PokerStarsSummary.py @@ -57,13 +57,13 @@ class PokerStarsSummary(TourneySummary): (?PNo\sLimit|Limit|LIMIT|Pot\sLimit)\s (?PHold\'em|Razz|RAZZ|7\sCard\sStud|7\sCard\sStud\sHi/Lo|Omaha|Omaha\sHi/Lo|Badugi|Triple\sDraw\s2\-7\sLowball|5\sCard\sDraw)\s+ (?P[ a-zA-Z]+\s+)? - (Buy-In:\s\$(?P[.0-9]+)(\/\$(?P[.0-9]+))?\s+)? + (Buy-In:\s\$(?P[.0-9]+)(\/\$(?P[.0-9]+))?(?P\s%(LEGAL_ISO)s)?\s+)? (?P[0-9]+)\splayers\s+ (\$?(?P[.\d]+)\sadded\sto\sthe\sprize\spool\sby\sPokerStars\.com\s+)? - (Total\sPrize\sPool:\s\$?(?P[.0-9]+)\s+)? + (Total\sPrize\sPool:\s\$?(?P[.0-9]+)(\s%(LEGAL_ISO)s)?\s+)? (Target\sTournament\s.*)? - Tournament\sstarted\s-\s - (?P[0-9]{4})\/(?P[0-9]{2})\/(?P[0-9]{2})[\-\s]+(?P[0-9]+):(?P[0-9]+):(?P[0-9]+)\s?\(?(?P[A-Z]+)\)\s + Tournament\sstarted\s+(-\s)? + (?P[0-9]{4})\/(?P[0-9]{2})\/(?P[0-9]{2})[\-\s]+(?P[0-9]+):(?P[0-9]+):(?P[0-9]+)\s?\(?(?P[A-Z]+)\)?\s """ % substitutions ,re.VERBOSE|re.MULTILINE|re.DOTALL) re_Currency = re.compile(u"""(?P[%(LS)s]|FPP)""" % substitutions)