Commit Graph
18 Commits
Author SHA1 Message Date
chaz@pokeit.co ec477110cf fixed an import bug which prevented handsplayers and handsactions records from ever getting inserted 2011-01-18 03:53:35 -05:00
chaz@pokeit.co 6a7f175a60 Patched a small bug in storeSessionsCache() 2011-01-05 17:51:31 -05:00
chaz@pokeit.co 38e6e15a26 Modified import_file_dict() so that it stores HandsPlayers and HandsActions inserts in a temprorary list. Once the end of the handlist is reached, an executemany() bulk insert is done. 2011-01-01 15:40:06 -05:00
chaz@pokeit.co 990e226254 storeSessionsCache() now adds a sessionId to the Hands table 2011-01-01 03:35:14 -05:00
chaz@pokeit.co 838c626bba Changed the HandsActions table join index from 'handsPlayersId' to 'handId' and 'playerId'. This allows us to use executemany(), which is faster, in storeHandsPlayers when storing actions. 2010-12-31 15:30:29 -05:00
chaz@pokeit.co 6d3e21756d * Commented out BB won in sessionsCache for the time being. Will add it back in once I resolve the errors. 2010-12-20 07:02:00 -05:00
chaz@pokeit.co 95d14911f3 Fixed a variety of bugs in storeSessionsCache() and the corresponding SQL statements 2010-12-08 16:32:26 -05:00
chaz@pokeit.co b37ebb9f4f Made the same 'Hero' changes for tour and summary files. Also made cacheSessions default in the test Config file 2010-12-05 18:24:45 -05:00
chaz@pokeit.co 1a1f9b504b Replaced 'YOUR SCREEN NAME HERE' with Hero in the test file 2010-12-05 17:30:56 -05:00
chaz@pokeit.co a504fc211c Replaced all of the Hero names in the regression files with 'Hero' 2010-12-05 17:28:31 -05:00
chaz@pokeit.co 50ac251f9a DB version 147 2010-12-05 00:53:38 -05:00
chaz@pokeit.co 6ea5432c2e Added a placeholder for rebuild_sessionscache() 2010-12-04 21:04:43 -05:00
chaz@pokeit.co dd707fb0cb Updated the comments 2010-12-04 21:02:21 -05:00
Chaz 0c46965d98 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. 2010-12-04 17:40:48 -05:00
Chaz a7f3b1326f Added some logic so the importer won't try to send hands to HUD when HudCache is generated from the command line 2010-12-02 00:40:31 -05:00
Chaz 5a2fcea9df turns out the the '+0' is for indexing and has nothing to do with NULLS so I put it back in 2010-12-02 00:27:03 -05:00
Chaz 5fd3dddf2b * update_hudcache wasn't updating existing cashgame records because it was trying to match a NULL tourneyTypeId with a %s None value. Changed the logic of the SQL to handle this situation. It appeared like someone had tried to handle this by adding '+0' to the NULL record but it doesn't work.
* Deleted the attempted '+0' NULL value handling for gametypeId. gametypeId should never be null as an error would have already been thrown before it was inserted
2010-12-01 16:35:38 -05:00
Chaz 68b92b5130 Incremented the db version up to 146 and fixed 1 bug 2010-12-01 16:18:30 -05:00