Support for new Hand History format for Party Poker
Don't have enough 'old' HH to test
This commit is contained in:
		
							parent
							
								
									4c37877c7f
								
							
						
					
					
						commit
						1e11109e1f
					
				| 
						 | 
				
			
			@ -105,8 +105,15 @@ class PartyPoker(HandHistoryConverter):
 | 
			
		|||
 | 
			
		||||
    def guessMaxSeats(self, hand):
 | 
			
		||||
        """Return a guess at max_seats when not specified in HH."""
 | 
			
		||||
        # Total number of players : 4/6 
 | 
			
		||||
        re_seats = re.compile("""Total\s+number\s+of\s+players\s+\:\s+\d+.{1}(?P<SEATS>\d+)""" , re.VERBOSE)
 | 
			
		||||
        try:            
 | 
			
		||||
            m = re_seats.search(hand.handText)
 | 
			
		||||
            mo = m.groupdict()
 | 
			
		||||
            mo = _mo['SEATS']
 | 
			
		||||
            return mo
 | 
			
		||||
        except:
 | 
			
		||||
            mo = self.maxOccSeat(hand)
 | 
			
		||||
 | 
			
		||||
            if mo == 10: return mo
 | 
			
		||||
            if mo == 2: return 2
 | 
			
		||||
            if mo <= 6: return 6
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user