From c400fd9ba7032df39ad93f12884e0bd1da09ed65 Mon Sep 17 00:00:00 2001 From: eblade Date: Thu, 30 Jul 2009 20:56:39 -0400 Subject: [PATCH] FTtoFpdb: default buyin to $0.00+$0.00 and level to 0, they don't seem to be in the FT hh --- pyfpdb/FulltiltToFpdb.py | 6 ++++++ pyfpdb/Hand.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pyfpdb/FulltiltToFpdb.py b/pyfpdb/FulltiltToFpdb.py index 3b8026bf..51b62174 100755 --- a/pyfpdb/FulltiltToFpdb.py +++ b/pyfpdb/FulltiltToFpdb.py @@ -176,6 +176,12 @@ follow : whether to tail -f the input""" hand.tourNo = m.group('TOURNO') if m.group('PLAY') != None: hand.gametype['currency'] = 'play' + + # TODO: if there's a way to figure these out, we should.. otherwise we have to stuff it with unknowns + if hand.buyin == None: + hand.buyin = "$0.00+$0.00" + if hand.level == None: + hand.level = "0" # These work, but the info is already in the Hand class - should be used for tourneys though. # m.group('SB') diff --git a/pyfpdb/Hand.py b/pyfpdb/Hand.py index 4e7d4bdf..50fab822 100644 --- a/pyfpdb/Hand.py +++ b/pyfpdb/Hand.py @@ -564,7 +564,7 @@ Map the tuple self.gametype onto the pokerstars string describing it def writeGameLine(self): """Return the first HH line for the current hand.""" gs = "PokerStars Game #%s: " % self.handid - + if self.tourNo != None and self.mixed != None: # mixed tournament gs = gs + "Tournament #%s, %s %s (%s) - Level %s (%s) - " % (self.tourNo, self.buyin, self.MS[self.mixed], self.getGameTypeAsString(), self.level, self.getStakesAsString()) elif self.tourNo != None: # all other tournaments