From eec01083b18dd29f6b47185506c7c6642a66260b Mon Sep 17 00:00:00 2001 From: Worros Date: Sat, 2 Apr 2011 23:22:56 +0800 Subject: [PATCH] FTP: Add high limit lookup Clear the blind string of ,s and add 1k/2k and 1.5k/3k. --- pyfpdb/FulltiltToFpdb.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pyfpdb/FulltiltToFpdb.py b/pyfpdb/FulltiltToFpdb.py index 57a2984c..328ae4fa 100755 --- a/pyfpdb/FulltiltToFpdb.py +++ b/pyfpdb/FulltiltToFpdb.py @@ -61,7 +61,9 @@ class Fulltilt(HandHistoryConverter): '400.00': ('100.00', '200.00'), '400': ('100.00', '200.00'), '500.00': ('125.00', '250.00'), '500': ('125.00', '250.00'), '800.00': ('200.00', '400.00'), '800': ('200.00', '400.00'), - '1000.00': ('250.00', '500.00'),'1000': ('250.00', '500.00') + '1000.00': ('250.00', '500.00'),'1000': ('250.00', '500.00'), + '2000.00': ('500.00', '750.00'),'2000': ('500.00', '1000.00'), + '3000.00': ('750.00', '1500.00'),'3000': ('750.00', '1500.00'), } # Static regexes @@ -242,8 +244,9 @@ class Fulltilt(HandHistoryConverter): if info['limitType'] == 'fl' and info['bb'] is not None and info['type'] == 'ring': try: - info['sb'] = self.Lim_Blinds[mg['BB']][0] - info['bb'] = self.Lim_Blinds[mg['BB']][1] + bb = self.clearMoneyString(mg['BB']) + info['sb'] = self.Lim_Blinds[bb][0] + info['bb'] = self.Lim_Blinds[bb][1] except KeyError: log.error(_("Lim_Blinds has no lookup for '%s'") % mg['BB']) log.error(_("determineGameType: Raising FpdbParseError"))