From 9cb47b4195f9ede056ae21326302044692425738 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Fri, 9 Jul 2010 01:10:06 +0200 Subject: [PATCH] stop it from dying on fpdb summary files (by commenting out the whole section) --- pyfpdb/FulltiltToFpdb.py | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/pyfpdb/FulltiltToFpdb.py b/pyfpdb/FulltiltToFpdb.py index 06a1a32f..d9e924f0 100755 --- a/pyfpdb/FulltiltToFpdb.py +++ b/pyfpdb/FulltiltToFpdb.py @@ -434,23 +434,23 @@ class Fulltilt(HandHistoryConverter): def readSummaryInfo(self, summaryInfoList): self.status = True - m = re.search("Tournament Summary", summaryInfoList[0]) - if m: - # info list should be 2 lines : Tourney infos & Finsihing postions with winnings - if (len(summaryInfoList) != 2 ): - log.info("Too many or too few lines (%d) in file '%s' : '%s'" % (len(summaryInfoList), self.in_path, summaryInfoList) ) - self.status = False - else: - self.tourney = TourneySummary.TourneySummary(sitename = self.sitename, gametype = None, summaryText = summaryInfoList, builtFrom = "HHC") - self.status = self.getPlayersPositionsAndWinnings(self.tourney) - if self.status == True : - self.status = self.determineTourneyType(self.tourney) - #print self.tourney - else: - log.info("Parsing NOK : rejected") - else: - log.info( "This is not a summary file : '%s'" % (self.in_path) ) - self.status = False + #m = re.search("Tournament Summary", summaryInfoList[0]) + #if m: + # # info list should be 2 lines : Tourney infos & Finsihing postions with winnings + # if (len(summaryInfoList) != 2 ): + # log.info("Too many or too few lines (%d) in file '%s' : '%s'" % (len(summaryInfoList), self.in_path, summaryInfoList) ) + # self.status = False + # else: + # self.tourney = TourneySummary.TourneySummary(sitename = self.sitename, gametype = None, summaryText = summaryInfoList, builtFrom = "HHC") + # self.status = self.getPlayersPositionsAndWinnings(self.tourney) + # if self.status == True : + # self.status = self.determineTourneyType(self.tourney) + # #print self.tourney + # else: + # log.info("Parsing NOK : rejected") + #else: + # log.info( "This is not a summary file : '%s'" % (self.in_path) ) + # self.status = False return self.status