From bba6d48c7d62146efd0e064114fcbb0c3caf99b9 Mon Sep 17 00:00:00 2001 From: Worros Date: Tue, 18 Jan 2011 11:12:39 +0800 Subject: [PATCH] StarsSummary: Fix for EUR currencies --- pyfpdb/PokerStarsSummary.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyfpdb/PokerStarsSummary.py b/pyfpdb/PokerStarsSummary.py index 8ee68712..01a9223b 100644 --- a/pyfpdb/PokerStarsSummary.py +++ b/pyfpdb/PokerStarsSummary.py @@ -45,7 +45,7 @@ class PokerStarsSummary(TourneySummary): substitutions = { 'LEGAL_ISO' : "USD|EUR|GBP|CAD|FPP", # legal ISO currency codes - 'LS' : "\$|\xe2\x82\xac|" # legal currency symbols - Euro(cp1252, utf-8) + 'LS' : u"\$|\xe2\x82\xac|\u20AC|" # legal currency symbols - Euro(cp1252, utf-8) } re_SplitTourneys = re.compile("PokerStars Tournament ") @@ -57,10 +57,10 @@ 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]+))?(?P\s%(LEGAL_ISO)s)?\s+)? + (Buy-In:\s[%(LS)s](?P[.0-9]+)(\/[%(LS)s](?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%(LEGAL_ISO)s)?\s+)? + ([%(LS)s]?(?P[.\d]+)\sadded\sto\sthe\sprize\spool\sby\sPokerStars\.com\s+)? + (Total\sPrize\sPool:\s[%(LS)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