From 3fdab4a8c38b0e13c6e3ce1b863333bec067c8a6 Mon Sep 17 00:00:00 2001 From: Worros Date: Mon, 27 Dec 2010 18:28:00 +0800 Subject: [PATCH] FTPSummary: Minor regex change for failing summary file --- pyfpdb/FullTiltPokerSummary.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyfpdb/FullTiltPokerSummary.py b/pyfpdb/FullTiltPokerSummary.py index 6ad7560e..56cf3532 100644 --- a/pyfpdb/FullTiltPokerSummary.py +++ b/pyfpdb/FullTiltPokerSummary.py @@ -46,7 +46,9 @@ class FullTiltPokerSummary(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' : "\$|\xe2\x82\xac|", # legal currency symbols - Euro(cp1252, utf-8) + 'TAB' : u"-\u2013'\s\da-zA-Z", # legal characters for tablename + 'NUM' : u".,\d", # legal characters in number format } re_SplitTourneys = re.compile("^Full Tilt Poker Tournament Summary") @@ -62,7 +64,7 @@ class FullTiltPokerSummary(TourneySummary): (Buy-In\sChips:\s(?P\d+)\s+)? (?P[0-9]+)\sEntries\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[%(NUM)s]+)\s+)? (Target\sTournament\s.*)? Tournament\sstarted:\s (?P[\d]{4})\/(?P[\d]{2})\/(?P[\d]+)\s+(?P[\d]+):(?P[\d]+):(?P[\d]+)\s??(?P[A-Z]+)\s