From 10a48240dbbc4a98a4d09beead1af999564c03f1 Mon Sep 17 00:00:00 2001 From: Worros Date: Sat, 4 Sep 2010 16:31:39 +0800 Subject: [PATCH] PSSummary: Add new parseSummary method --- pyfpdb/PokerStarsSummary.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyfpdb/PokerStarsSummary.py b/pyfpdb/PokerStarsSummary.py index 14b9cadc..bd8cbe4e 100644 --- a/pyfpdb/PokerStarsSummary.py +++ b/pyfpdb/PokerStarsSummary.py @@ -53,6 +53,8 @@ class PokerStarsSummary(TourneySummary): 'Triple Draw 2-7 Lowball' : ('draw','27_3draw'), '5 Card Draw' : ('draw','fivedraw') } + + re_SplitGames = re.compile("^PokerStars") re_TourNo = re.compile("\#[0-9]+,") re_Entries = re.compile("[0-9]+") @@ -167,4 +169,7 @@ class PokerStarsSummary(TourneySummary): self.addPlayer(rank, name, winnings, self.currency, None, None, None)#TODO: currency, ko/addon/rebuy count -> need examples! #end def parseSummary + def parseSummaryFile(self): + lines=self.summaryText.splitlines() + print lines #end class PokerStarsSummary