PokerStarsToFpdb: allow a second small blind to be posted

If a player sits out a sb in a cash game they can post it after the button

There is still an accounting error in the way we calculate the returned bet.
This commit is contained in:
Worros 2010-02-16 00:34:18 +08:00
parent c0e0c3e596
commit fcd0ba3dd1

View File

@ -288,8 +288,13 @@ class PokerStars(HandHistoryConverter):
def readBlinds(self, hand): def readBlinds(self, hand):
try: try:
m = self.re_PostSB.search(hand.handText) count = 0
hand.addBlind(m.group('PNAME'), 'small blind', m.group('SB')) for a in self.re_PostSB.finditer(hand.handText):
if count == 0:
hand.addBlind(a.group('PNAME'), 'small blind', a.group('SB'))
count = 1
else:
hand.addAnte(a.group('PNAME'), a.group('SB'))
except: # no small blind except: # no small blind
hand.addBlind(None, None, None) hand.addBlind(None, None, None)
for a in self.re_PostBB.finditer(hand.handText): for a in self.re_PostBB.finditer(hand.handText):