From 35a5cffb77b07399b4dec80cfbec9451e2b2bc51 Mon Sep 17 00:00:00 2001 From: Matt Turnbull Date: Wed, 15 Jul 2009 00:26:53 +0100 Subject: [PATCH] Working on PS HORSE file now.. --- pyfpdb/HandHistoryConverter.py | 4 ++-- pyfpdb/PokerStarsToFpdb.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyfpdb/HandHistoryConverter.py b/pyfpdb/HandHistoryConverter.py index 590ee065..47ddecf5 100644 --- a/pyfpdb/HandHistoryConverter.py +++ b/pyfpdb/HandHistoryConverter.py @@ -31,8 +31,8 @@ from xml.dom.minidom import Node import time import datetime -#import gettext -#gettext.install('fpdb') +import gettext +gettext.install('fpdb') class HandHistoryConverter(): diff --git a/pyfpdb/PokerStarsToFpdb.py b/pyfpdb/PokerStarsToFpdb.py index 41b3c67f..b855586b 100755 --- a/pyfpdb/PokerStarsToFpdb.py +++ b/pyfpdb/PokerStarsToFpdb.py @@ -298,7 +298,7 @@ follow : whether to tail -f the input""" hand.addHoleCards(street, hand.hero, closed=newcards, shown=False, mucked=False, dealt=True) for street, text in hand.streets.iteritems(): - if street in ('PREFLOP', 'DEAL'): continue # already done these + if not text or street in ('PREFLOP', 'DEAL'): continue # already done these m = self.re_HeroCards.finditer(hand.streets[street]) for found in m: player = found.group('PNAME')