From e0b51bee07419de438c84b454cd73802c298f2e3 Mon Sep 17 00:00:00 2001 From: Worros Date: Fri, 25 Jun 2010 16:58:14 +0800 Subject: [PATCH] Really add the 0.20/0.40 limit level Limit occurs in Stars 8 game --- pyfpdb/PokerStarsToFpdb.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pyfpdb/PokerStarsToFpdb.py b/pyfpdb/PokerStarsToFpdb.py index 89071ae7..c460e6ff 100644 --- a/pyfpdb/PokerStarsToFpdb.py +++ b/pyfpdb/PokerStarsToFpdb.py @@ -145,14 +145,12 @@ class PokerStars(HandHistoryConverter): mg = m.groupdict() # translations from captured groups to fpdb info strings Lim_Blinds = { '0.04': ('0.01', '0.02'), '0.10': ('0.02', '0.05'), '0.20': ('0.05', '0.10'), - '0.80': ('0.20', '0.40'), - '0.50': ('0.10', '0.25'), '1.00': ('0.25', '0.50'), '2.00': ('0.50', '1.00'), - '2': ('0.50', '1.00'), '4': ('1.00', '2.00'), '6': ('1.00', '3.00'), - '4.00': ('1.00', '2.00'), '6.00': ('1.00', '3.00'), '10.00': ('2.00', '5.00'), - '20.00': ('5.00', '10.00'), '30.00': ('10.00', '15.00'), '60.00': ('15.00', '30.00'), - '100.00': ('25.00', '50.00'),'200.00': ('50.00', '100.00'),'400.00': ('100.00', '200.00'), - '1000.00': ('250.00', '500.00')} - + '0.40': ('0.10', '0.20'), '0.50': ('0.10', '0.25'), '1.00': ('0.25', '0.50'), + '2.00': ('0.50', '1.00'), '2': ('0.50', '1.00'), '4' : ('1.00', '2.00'), + '4.00': ('1.00', '2.00'), '6': ('1.00', '3.00'), '6.00': ('1.00', '3.00'), + '10.00': ('2.00', '5.00'), '20.00': ('5.00', '10.00'), '30.00': ('10.00', '15.00'), + '60.00': ('15.00', '30.00'), '100.00': ('25.00', '50.00'), '200.00': ('50.00', '100.00'), + '400.00': ('100.00', '200.00'), '1000.00': ('250.00', '500.00')} limits = { 'No Limit':'nl', 'Pot Limit':'pl', 'Limit':'fl', 'LIMIT':'fl' } games = { # base, category @@ -197,7 +195,6 @@ class PokerStars(HandHistoryConverter): log.error("determineGameType: Raising FpdbParseError") raise FpdbParseError("Lim_Blinds has no lookup for '%s'" % mg['BB']) - # NB: SB, BB must be interpreted as blinds or bets depending on limit type. return info def readHandInfo(self, hand):