change PSS to give None for *Count

This commit is contained in:
steffen123 2010-07-07 08:12:10 +02:00
parent 160ca30abe
commit 0ecd19fbdf
2 changed files with 8 additions and 5 deletions

View File

@ -62,6 +62,6 @@ class PokerStarsSummary(TourneySummary):
else: else:
winnings=0 winnings=0
self.addPlayer(rank, name, winnings, "USD", -1, -1, -1)#TODO: currency, ko/addon/rebuy count -> need examples! self.addPlayer(rank, name, winnings, "USD", None, None, None)#TODO: currency, ko/addon/rebuy count -> need examples!
#end def parseSummary #end def parseSummary
#end class PokerStarsSummary #end class PokerStarsSummary

View File

@ -217,10 +217,13 @@ winnings (decimal) the money the player ended the tourney with (can be 0, or
self.ranks.update( { name : Decimal(rank) } ) self.ranks.update( { name : Decimal(rank) } )
self.winnings.update( { name : Decimal(winnings) } ) self.winnings.update( { name : Decimal(winnings) } )
self.winningsCurrency.update( { name : winningsCurrency } ) self.winningsCurrency.update( { name : winningsCurrency } )
self.rebuyCounts.update( {name: Decimal(rebuyCount) } ) if rebuyCount:
self.addOnCounts.update( {name: Decimal(addOnCount) } ) self.rebuyCounts.update( {name: Decimal(rebuyCount) } )
self.koCounts.update( {name : Decimal(koCount) } ) if addOnCount:
self.addOnCounts.update( {name: Decimal(addOnCount) } )
if koCount:
self.koCounts.update( {name : Decimal(koCount) } )
#end def addPlayer
def incrementPlayerWinnings(self, name, additionnalWinnings): def incrementPlayerWinnings(self, name, additionnalWinnings):
log.debug("incrementPlayerWinnings: name : '%s' - Add Winnings (%s)" % (name, additionnalWinnings)) log.debug("incrementPlayerWinnings: name : '%s' - Add Winnings (%s)" % (name, additionnalWinnings))