change PSS to give None for *Count
This commit is contained in:
		
							parent
							
								
									160ca30abe
								
							
						
					
					
						commit
						0ecd19fbdf
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user