From b982658446987e957781eb08211409092118992d Mon Sep 17 00:00:00 2001 From: Worros Date: Sat, 4 Sep 2010 20:36:31 +0800 Subject: [PATCH] PSSummary: identify step tickets --- pyfpdb/PokerStarsSummary.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyfpdb/PokerStarsSummary.py b/pyfpdb/PokerStarsSummary.py index 36ceae48..dc6d8292 100644 --- a/pyfpdb/PokerStarsSummary.py +++ b/pyfpdb/PokerStarsSummary.py @@ -77,7 +77,7 @@ class PokerStarsSummary(TourneySummary): re_Currency = re.compile(u"""(?P[%(LS)s]|FPP)""" % substitutions) - re_Player = re.compile(u"""(?P[0-9]+):\s(?P.*)\s\(.*\),(\s)?(\$(?P[0-9]+\.[0-9]+))?(?Pstill\splaying)?""") + re_Player = re.compile(u"""(?P[0-9]+):\s(?P.*)\s\(.*\),(\s)(\$(?P[0-9]+\.[0-9]+))?(?Pstill\splaying)?((?PTournament\sTicket)\s\(WSOP\sStep\s(?P\d)\))?""") re_DateTime = re.compile("\[(?P[0-9]{4})\/(?P[0-9]{2})\/(?P[0-9]{2})[\- ]+(?P[0-9]+):(?P[0-9]+):(?P[0-9]+)") @@ -248,6 +248,10 @@ class PokerStarsSummary(TourneySummary): rank=None winnings=None + if 'TICKET' and mg['TICKET'] != None: + print "DEBUG: TODO! fix Step ticket values" + print "\tWinning = Level %s" % mg['LEVEL'] + #TODO: currency, ko/addon/rebuy count -> need examples! #print "DEBUG: addPlayer(%s, %s, %s, %s, None, None, None)" %(rank, name, winnings, self.currency) #print "DEBUG: self.buyin: %s self.fee %s" %(self.buyin, self.fee)