[NEWIMPORT] HandsPlayers.streetXAggr insert.

This commit is contained in:
Worros 2009-10-14 23:55:51 +08:00
parent 7b2c1fa243
commit 16d1f43c7e
2 changed files with 15 additions and 7 deletions

View File

@ -1431,16 +1431,27 @@ class Database:
inserts.append( (hid, inserts.append( (hid,
pids[p], pids[p],
pdata[p]['startCash'], pdata[p]['startCash'],
pdata[p]['seatNo'] pdata[p]['seatNo'],
pdata[p]['street0Aggr'],
pdata[p]['street1Aggr'],
pdata[p]['street2Aggr'],
pdata[p]['street3Aggr'],
pdata[p]['street4Aggr']
) ) ) )
q = """INSERT INTO HandsPlayers ( q = """INSERT INTO HandsPlayers (
handId, handId,
playerId, playerId,
startCash, startCash,
seatNo seatNo,
street0Aggr,
street1Aggr,
street2Aggr,
street3Aggr,
street4Aggr
) )
VALUES ( VALUES (
%s, %s, %s, %s, %s,
%s, %s, %s, %s %s, %s, %s, %s
)""" )"""
@ -1455,7 +1466,6 @@ class Database:
# rake, # rake,
# totalProfit, # totalProfit,
# street0VPI, # street0VPI,
# street0Aggr,
# street0_3BChance, # street0_3BChance,
# street0_3BDone, # street0_3BDone,
# street1Seen, # street1Seen,
@ -1463,10 +1473,6 @@ class Database:
# street3Seen, # street3Seen,
# street4Seen, # street4Seen,
# sawShowdown, # sawShowdown,
# street1Aggr,
# street2Aggr,
# street3Aggr,
# street4Aggr,
# otherRaisedStreet1, # otherRaisedStreet1,
# otherRaisedStreet2, # otherRaisedStreet2,
# otherRaisedStreet3, # otherRaisedStreet3,

View File

@ -29,6 +29,8 @@ class DerivedStats():
for player in hand.players: for player in hand.players:
self.handsplayers[player[1]] = {} self.handsplayers[player[1]] = {}
#Init vars that may not be used, but still need to be inserted.
self.handsplayers[player[1]]['street4Aggr'] = False
self.assembleHands(self.hand) self.assembleHands(self.hand)
self.assembleHandsPlayers(self.hand) self.assembleHandsPlayers(self.hand)