From a7f71137050b590fbe9345f20dbce5f9e2f0f553 Mon Sep 17 00:00:00 2001 From: Worros Date: Fri, 13 Mar 2009 18:45:15 +0900 Subject: [PATCH] Make determineGameType return 'tour' of currency is T$ --- pyfpdb/EverleafToFpdb.py | 6 ++---- pyfpdb/test_Everleaf.py | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pyfpdb/EverleafToFpdb.py b/pyfpdb/EverleafToFpdb.py index 8f411770..41c3c4ff 100755 --- a/pyfpdb/EverleafToFpdb.py +++ b/pyfpdb/EverleafToFpdb.py @@ -130,12 +130,10 @@ or None if we fail to get the info """ info['bb'] = mg['BB'] if 'CURRENCY' in mg: info['currency'] = currencies[mg['CURRENCY']] + if info['currency'] == 'T$': + info['type'] = 'tour' # NB: SB, BB must be interpreted as blinds or bets depending on limit type. - if not self.debugging and info['base']=='stud': - logging.warning("Not processing Everleaf Stud hand") - #return None - return info diff --git a/pyfpdb/test_Everleaf.py b/pyfpdb/test_Everleaf.py index 6adfc495..9f557159 100644 --- a/pyfpdb/test_Everleaf.py +++ b/pyfpdb/test_Everleaf.py @@ -31,7 +31,7 @@ Blinds 10/20 NL Hold'em - 2009/02/25 - 17:30:32 Table 2 Seat 1 is the button Total number of players: 10""", - {'type':'ring', 'base':"hold", 'category':'holdem', 'limitType':'nl', 'sb':'10', 'bb':'20', 'currency':'T$'}), + {'type':'tour', 'base':"hold", 'category':'holdem', 'limitType':'nl', 'sb':'10', 'bb':'20', 'currency':'T$'}), ("""Everleaf Gaming Game #65087798 ***** Hand history for game #65087798 ***** @@ -43,7 +43,7 @@ Table Plymouth""", ***** Hand history for game #65295370 ***** Blinds $0.50/$1 PL Omaha - 2008/12/07 - 21:59:48 Table Guanajuato""", - {'type':'ring', 'base':'hold', 'category':'omahahi', 'limitType':'pl', 'sb':'0.50', 'bb':'1','currency':'USD'}) + {'type':'ring', 'base':'hold', 'category':'omahahi', 'limitType':'pl', 'sb':'0.50', 'bb':'1','currency':'USD'}), ) for (header, info) in pairs: