From 0e33f0f29bf58c9d849717c71580906544e815f2 Mon Sep 17 00:00:00 2001 From: Worros Date: Mon, 27 Dec 2010 19:24:54 +0800 Subject: [PATCH] FTPSummary: Expand regex to deal with rebuy info New fields: ADDON - cost of addon REBUYAMT - cost of rebuy PNAME - Hero name PREBUYS - No of Hero rebuys ADDONCHIPS - How many chips the addon purchased REBUYCHIPS - How many chips a rebuy purchased ADDONS - Total # of tourney addons REBUYS - Total # of tourney rebuys --- pyfpdb/FullTiltPokerSummary.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pyfpdb/FullTiltPokerSummary.py b/pyfpdb/FullTiltPokerSummary.py index 56cf3532..d3bcf191 100644 --- a/pyfpdb/FullTiltPokerSummary.py +++ b/pyfpdb/FullTiltPokerSummary.py @@ -57,12 +57,19 @@ class FullTiltPokerSummary(TourneySummary): re_TourneyInfo = re.compile(u""" \s.* - (?PTournament|Sit\s\&\sGo)\s\((?P[0-9]+)\)(\s+)? + (?PTournament|Sit\s\&\sGo|\(Rebuy\))\s\((?P[0-9]+)\)(\s+)? (?PHold\'em|Razz|RAZZ|7\sCard\sStud|7\sCard\sStud\sHi/Lo|Omaha|Omaha\sHi|Omaha\sHi/Lo|Badugi|Triple\sDraw\s2\-7\sLowball|5\sCard\sDraw)\s+ (?PNo\sLimit|Limit|LIMIT|Pot\sLimit)\s+ (Buy-In:\s\$(?P[.\d]+)(\s\+\s\$(?P[.\d]+))?\s+)? + (Add-On:\s\$(?P[.\d]+)\s+)? + (Rebuy:\s\$(?P[.\d]+)\s+)? + ((?P.{2,15})\sperformed\s(?P\d+)\sRebuys\s+)? (Buy-In\sChips:\s(?P\d+)\s+)? + (Add-On\sChips:\s(?P\d+)\s+)? + (Rebuy\sChips:\s(?P\d+)\s+)? (?P[0-9]+)\sEntries\s+ + (Total\sAdd-Ons:\s(?P\d+)\s+)? + (Total\sRebuys:\s(?P\d+)\s+)? (\$?(?P[.\d]+)\sadded\sto\sthe\sprize\spool\sby\sPokerStars\.com\s+)? (Total\sPrize\sPool:\s\$?(?P[%(NUM)s]+)\s+)? (Target\sTournament\s.*)?