From c77cf551048de0de949b28549f3c4dcedd1bf2bd Mon Sep 17 00:00:00 2001 From: Worros Date: Fri, 20 Aug 2010 18:05:25 +0800 Subject: [PATCH] OnGame: Fix readSupprtedGames and currency --- pyfpdb/OnGameToFpdb.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyfpdb/OnGameToFpdb.py b/pyfpdb/OnGameToFpdb.py index 5f8e1683..da7e299a 100755 --- a/pyfpdb/OnGameToFpdb.py +++ b/pyfpdb/OnGameToFpdb.py @@ -107,7 +107,10 @@ class OnGame(HandHistoryConverter): re_sitsOut = re.compile('(?P.*) sits out') def readSupportedGames(self): - pass + return [ + ["ring", "hold", "fl"], + ["ring", "hold", "nl"], + ] def determineGameType(self, handText): # Inspect the handText and return the gametype dict @@ -124,6 +127,7 @@ class OnGame(HandHistoryConverter): mg = m.groupdict() info['type'] = 'ring' + info['currency'] = 'USD' if 'LIMIT' in mg: info['limitType'] = self.limits[mg['LIMIT']]