From afddc130a5cea12e5d86274597b5b22d79a55524 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 19 Jun 2009 09:39:17 -0400 Subject: [PATCH] Fix minor error in writing seen hole cards. --- pyfpdb/Hand.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyfpdb/Hand.py b/pyfpdb/Hand.py index 5342487b..c8481269 100644 --- a/pyfpdb/Hand.py +++ b/pyfpdb/Hand.py @@ -703,11 +703,12 @@ Card ranks will be uppercased if board: # sometimes hand ends preflop without a board print >>fh, ("Board [%s]" % (" ".join(board))) + print "holecards =", self.holecards for player in [x for x in self.players if x[1] in players_who_act_preflop]: seatnum = player[0] name = player[1] if name in self.collectees and name in self.shown: - print >>fh, ("Seat %d: %s showed [%s] and won ($%s)" % (seatnum, name, " ".join(self.holecards[name]['PREFLOP']), self.collectees[name])) + print >>fh, ("Seat %d: %s showed [%s] and won ($%s)" % (seatnum, name, " ".join(self.holecards['PREFLOP'][name]), self.collectees[name])) elif name in self.collectees: print >>fh, ("Seat %d: %s collected ($%s)" % (seatnum, name, self.collectees[name])) #~ elif name in self.shown: @@ -716,7 +717,7 @@ Card ranks will be uppercased print >>fh, ("Seat %d: %s folded" % (seatnum, name)) else: if name in self.shown: - print >>fh, ("Seat %d: %s showed [%s] and lost with..." % (seatnum, name, " ".join(self.holecards[name]['PREFLOP']))) + print >>fh, ("Seat %d: %s showed [%s] and lost with..." % (seatnum, name, " ".join(self.holecards['PREFLOP'][name]))) else: print >>fh, ("Seat %d: %s mucked" % (seatnum, name))