stop it from dying on fpdb summary files (by commenting out the whole section)
This commit is contained in:
parent
310c7a2947
commit
9cb47b4195
|
@ -434,23 +434,23 @@ class Fulltilt(HandHistoryConverter):
|
||||||
def readSummaryInfo(self, summaryInfoList):
|
def readSummaryInfo(self, summaryInfoList):
|
||||||
self.status = True
|
self.status = True
|
||||||
|
|
||||||
m = re.search("Tournament Summary", summaryInfoList[0])
|
#m = re.search("Tournament Summary", summaryInfoList[0])
|
||||||
if m:
|
#if m:
|
||||||
# info list should be 2 lines : Tourney infos & Finsihing postions with winnings
|
# # info list should be 2 lines : Tourney infos & Finsihing postions with winnings
|
||||||
if (len(summaryInfoList) != 2 ):
|
# if (len(summaryInfoList) != 2 ):
|
||||||
log.info("Too many or too few lines (%d) in file '%s' : '%s'" % (len(summaryInfoList), self.in_path, summaryInfoList) )
|
# log.info("Too many or too few lines (%d) in file '%s' : '%s'" % (len(summaryInfoList), self.in_path, summaryInfoList) )
|
||||||
self.status = False
|
# self.status = False
|
||||||
else:
|
# else:
|
||||||
self.tourney = TourneySummary.TourneySummary(sitename = self.sitename, gametype = None, summaryText = summaryInfoList, builtFrom = "HHC")
|
# self.tourney = TourneySummary.TourneySummary(sitename = self.sitename, gametype = None, summaryText = summaryInfoList, builtFrom = "HHC")
|
||||||
self.status = self.getPlayersPositionsAndWinnings(self.tourney)
|
# self.status = self.getPlayersPositionsAndWinnings(self.tourney)
|
||||||
if self.status == True :
|
# if self.status == True :
|
||||||
self.status = self.determineTourneyType(self.tourney)
|
# self.status = self.determineTourneyType(self.tourney)
|
||||||
#print self.tourney
|
# #print self.tourney
|
||||||
else:
|
# else:
|
||||||
log.info("Parsing NOK : rejected")
|
# log.info("Parsing NOK : rejected")
|
||||||
else:
|
#else:
|
||||||
log.info( "This is not a summary file : '%s'" % (self.in_path) )
|
# log.info( "This is not a summary file : '%s'" % (self.in_path) )
|
||||||
self.status = False
|
# self.status = False
|
||||||
|
|
||||||
return self.status
|
return self.status
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user