[NEWIMPORT] Start of HandsPlayers insert

This commit is contained in:
Worros
2009-10-14 20:20:17 +08:00
parent f0f2bcda14
commit 2350474d38
3 changed files with 32 additions and 87 deletions
+12 -1
View File
@@ -39,6 +39,9 @@ class DerivedStats():
def getHands(self):
return self.hands
def getHandsPlayers(self):
return self.handsplayers
def assembleHands(self, hand):
self.hands['tableName'] = hand.tablename
self.hands['siteHandNo'] = hand.handid
@@ -77,10 +80,18 @@ class DerivedStats():
# commentTs DATETIME
def assembleHandsPlayers(self, hand):
self.vpip(self.hand)
#self.vpip(self.hand)
#hand.players = [[seat, name, chips],[seat, name, chips]]
for player in hand.players:
self.handsplayers[player[1]] = {}
self.handsplayers[player[1]]['seatNo'] = player[0]
self.handsplayers[player[1]]['startCash'] = player[2]
for i, street in enumerate(hand.actionStreets[1:]):
self.aggr(self.hand, i)
def assembleHudCache(self, hand):
# # def generateHudCacheData(player_ids, base, category, action_types, allIns, actionTypeByNo
# # ,winnings, totalWinnings, positions, actionTypes, actionAmounts, antes):