From 1edf8607609181f5a96aae752fdeb6a63c690d03 Mon Sep 17 00:00:00 2001 From: Gerko de Roo Date: Thu, 4 Mar 2010 19:49:43 +0100 Subject: [PATCH] Add support for post of dead small blind (PartyPoker) --- pyfpdb/PartyPokerToFpdb.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pyfpdb/PartyPokerToFpdb.py b/pyfpdb/PartyPokerToFpdb.py index 94acfd3f..5c60f179 100755 --- a/pyfpdb/PartyPokerToFpdb.py +++ b/pyfpdb/PartyPokerToFpdb.py @@ -360,8 +360,14 @@ class PartyPoker(HandHistoryConverter): if hand.gametype['type'] == 'ring': try: assert noSmallBlind==False - m = self.re_PostSB.search(hand.handText) - hand.addBlind(m.group('PNAME'), 'small blind', m.group('SB')) + liveBlind = True + for m in self.re_PostSB.finditer(hand.handText): + if liveBlind: + hand.addBlind(m.group('PNAME'), 'small blind', m.group('SB')) + liveBlind = False + else: + # Post dead blinds as ante + hand.addBlind(m.group('PNAME'), 'secondsb', m.group('SB')) except: # no small blind hand.addBlind(None, None, None)