From 6cb956c5fd6786e59c0087908fd036a4584f3725 Mon Sep 17 00:00:00 2001 From: Gerko de Roo Date: Sat, 23 Jan 2010 11:17:14 +0100 Subject: [PATCH] HUD fix for tournaments. Table name storage. --- pyfpdb/Hand.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyfpdb/Hand.py b/pyfpdb/Hand.py index a660b56d..274a103d 100644 --- a/pyfpdb/Hand.py +++ b/pyfpdb/Hand.py @@ -617,6 +617,8 @@ class HoldemOmahaHand(Hand): # which then invokes a 'addXXX' callback if builtFrom == "HHC": hhc.readHandInfo(self) + if self.gametype['type'] == 'tour': + self.tablename = "%s %s" % (self.tourNo, self.tablename) hhc.readPlayerStacks(self) hhc.compilePlayerRegexs(self) hhc.markStreets(self) @@ -912,6 +914,8 @@ class DrawHand(Hand): # Populate the draw hand. if builtFrom == "HHC": hhc.readHandInfo(self) + if self.gametype['type'] == 'tour': + self.tablename = "%s %s" % (self.tourNo, self.tablename) hhc.readPlayerStacks(self) hhc.compilePlayerRegexs(self) hhc.markStreets(self) @@ -1106,6 +1110,8 @@ class StudHand(Hand): # which then invokes a 'addXXX' callback if builtFrom == "HHC": hhc.readHandInfo(self) + if self.gametype['type'] == 'tour': + self.tablename = "%s %s" % (self.tourNo, self.tablename) hhc.readPlayerStacks(self) hhc.compilePlayerRegexs(self) hhc.markStreets(self)