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:
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 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.winnings.update( { name : Decimal(winnings) } )
self.winningsCurrency.update( { name : winningsCurrency } )
self.rebuyCounts.update( {name: Decimal(rebuyCount) } )
self.addOnCounts.update( {name: Decimal(addOnCount) } )
self.koCounts.update( {name : Decimal(koCount) } )
if rebuyCount:
self.rebuyCounts.update( {name: Decimal(rebuyCount) } )
if addOnCount:
self.addOnCounts.update( {name: Decimal(addOnCount) } )
if koCount:
self.koCounts.update( {name : Decimal(koCount) } )
#end def addPlayer
def incrementPlayerWinnings(self, name, additionnalWinnings):
log.debug("incrementPlayerWinnings: name : '%s' - Add Winnings (%s)" % (name, additionnalWinnings))