Hand.py: Add gametyperow variable
To be used for regression testing by THP
This commit is contained in:
parent
8dfc885a97
commit
2188bb7865
|
@ -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)
|
self.dbid_pids = db.getSqlPlayerIDs([p[1] for p in self.players], self.siteId)
|
||||||
|
|
||||||
#Gametypes
|
#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)
|
self.dbid_gt = db.getGameTypeId(self.siteId, self.gametype, printdata = printtest)
|
||||||
|
|
||||||
if self.tourNo!=None:
|
if self.tourNo!=None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user