Finished up code for creating and updating SessionsCache. Table includes fields for sessionStart, sessionEnd, ring hands, tournament hands, ring totalProfit, and ring bigBets won during each session. bigBets field is a python float stored as a REAL in the database (I am open to alternative suggestions). Also, storeSessions is currently set to False.

This commit is contained in:
Chaz
2010-12-04 17:40:48 -05:00
parent c2cda3bf87
commit 0c46965d98
3 changed files with 223 additions and 40 deletions
+1 -1
View File
@@ -280,7 +280,7 @@ db: a connected Database object"""
db.storeHudCache(self.dbid_gt, self.dbid_pids, self.startTime, self.stats.getHandsPlayers())
def updateSessionsCache(self, db):
db.storeSessionsCache(self.dbid_pids, self.startTime, self.stats.getHandsPlayers())
db.storeSessionsCache(self.dbid_pids, self.startTime, self.gametype, self.stats.getHandsPlayers())
def select(self, handId):
""" Function to create Hand object from database """