From 45b2b4b212ae91586a7d723b578ffec470998f3b Mon Sep 17 00:00:00 2001 From: Worros Date: Tue, 11 Nov 2008 08:22:33 +1000 Subject: [PATCH] Fix sb/bb - no need to convert --- pyfpdb/EverleafToFpdb.py | 6 ++++-- pyfpdb/HandHistoryConverter.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pyfpdb/EverleafToFpdb.py b/pyfpdb/EverleafToFpdb.py index c50944e7..7de4ec15 100644 --- a/pyfpdb/EverleafToFpdb.py +++ b/pyfpdb/EverleafToFpdb.py @@ -73,8 +73,10 @@ class Everleaf(HandHistoryConverter): gametype = ["ring", "hold", "nl"] m = self.rexx.game_info_re.search(self.obs) - gametype = gametype + [self.float2int(m.group('SB'))] - gametype = gametype + [self.float2int(m.group('BB'))] + gametype = gametype + [m.group('SB')] + gametype = gametype + [m.group('BB')] +# gametype = gametype + [self.float2int(m.group('SB'))] +# gametype = gametype + [self.float2int(m.group('BB'))] return gametype diff --git a/pyfpdb/HandHistoryConverter.py b/pyfpdb/HandHistoryConverter.py index 09e239a8..c4690fb7 100644 --- a/pyfpdb/HandHistoryConverter.py +++ b/pyfpdb/HandHistoryConverter.py @@ -129,7 +129,7 @@ class HandHistoryConverter: def writeHand(self, file, hand): """Write out parsed data""" - print "%s Game #%s: %s (%d/%d) - %s" %(hand.sitename, hand.handid, "XXXXhand.gametype", hand.sb, hand.bb, hand.starttime) + print "%s Game #%s: %s ($%s/$%s) - %s" %(hand.sitename, hand.handid, "XXXXhand.gametype", hand.sb, hand.bb, hand.starttime) print "Table '%s' %d-max Seat #%s is the button" %(hand.tablename, hand.maxseats, hand.buttonpos) for player in hand.players: