From 2188bb7865990e6f696d6c81f60c5e0fa52a788e Mon Sep 17 00:00:00 2001 From: Worros Date: Thu, 13 Jan 2011 14:28:51 +0800 Subject: [PATCH] Hand.py: Add gametyperow variable To be used for regression testing by THP --- pyfpdb/Hand.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pyfpdb/Hand.py b/pyfpdb/Hand.py index 0556cc9e..1c730220 100644 --- a/pyfpdb/Hand.py +++ b/pyfpdb/Hand.py @@ -235,6 +235,18 @@ dealt whether they were seen in a 'dealt to' line self.dbid_pids = db.getSqlPlayerIDs([p[1] for p in self.players], self.siteId) #Gametypes + hilo = "h" + if self.gametype['category'] in ['studhilo', 'omahahilo']: + hilo = "s" + elif self.gametype['category'] in ['razz','27_3draw','badugi', '27_1draw']: + hilo = "l" + + self.gametyperow = (self.siteId, self.gametype['currency'], self.gametype['type'], self.gametype['base'], + self.gametype['category'], self.gametype['limitType'], hilo, + int(Decimal(self.gametype['sb'])*100), int(Decimal(self.gametype['bb'])*100), + int(Decimal(self.gametype['bb'])*100), int(Decimal(self.gametype['bb'])*200)) + # Note: the above data is calculated in db.getGameTypeId + # Only being calculated above so we can grab the testdata self.dbid_gt = db.getGameTypeId(self.siteId, self.gametype, printdata = printtest) if self.tourNo!=None: