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):
try:
m = self.re_PostSB.search(hand.handText)
hand.addBlind(m.group('PNAME'), 'small blind', m.group('SB'))
count = 0
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
hand.addBlind(None, None, None)
for a in self.re_PostBB.finditer(hand.handText):