Merge branch 'master' of git://git.assembla.com/free_poker_tools
This commit is contained in:
commit
950b037b39
|
@ -106,18 +106,12 @@ class PartyPoker(HandHistoryConverter):
|
||||||
|
|
||||||
def guessMaxSeats(self, hand):
|
def guessMaxSeats(self, hand):
|
||||||
"""Return a guess at max_seats when not specified in HH."""
|
"""Return a guess at max_seats when not specified in HH."""
|
||||||
try:
|
mo = self.maxOccSeat(hand)
|
||||||
m = re_seats.search(hand.handText)
|
if mo == 10: return mo
|
||||||
mo = m.groupdict()
|
if mo == 2: return 2
|
||||||
mo = _mo['SEATS']
|
if mo <= 6: return 6
|
||||||
return mo
|
# there are 9-max tables for cash and 10-max for tournaments
|
||||||
except:
|
return 9 if hand.gametype['type']=='ring' else 10
|
||||||
mo = self.maxOccSeat(hand)
|
|
||||||
if mo == 10: return mo
|
|
||||||
if mo == 2: return 2
|
|
||||||
if mo <= 6: return 6
|
|
||||||
# there are 9-max tables for cash and 10-max for tournaments
|
|
||||||
return 9 if hand.gametype['type']=='ring' else 10
|
|
||||||
|
|
||||||
def compilePlayerRegexs(self, hand):
|
def compilePlayerRegexs(self, hand):
|
||||||
players = set([player[1] for player in hand.players])
|
players = set([player[1] for player in hand.players])
|
||||||
|
|
|
@ -181,7 +181,7 @@ class PokerStars(HandHistoryConverter):
|
||||||
else:
|
else:
|
||||||
info['type'] = 'tour'
|
info['type'] = 'tour'
|
||||||
|
|
||||||
if info['limitType'] == 'fl' and info['bb'] != None and info['type'] == 'ring':
|
if info['limitType'] == 'fl' and info['bb'] is not None and info['type'] == 'ring' and info['base'] != 'stud':
|
||||||
info['sb'] = Lim_Blinds[mg['BB']][0]
|
info['sb'] = Lim_Blinds[mg['BB']][0]
|
||||||
info['bb'] = Lim_Blinds[mg['BB']][1]
|
info['bb'] = Lim_Blinds[mg['BB']][1]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user