Commit Graph

401 Commits

Author SHA1 Message Date
Donoban
5369661b01 Disabling DEBUG messages from Database.py 2011-02-02 08:51:06 +01:00
Donoban
13758dd45a Added fold to 3bet 2011-02-02 03:35:38 +01:00
Worros
f12bc7bfaa Add printdata capability for Gametype info. 2011-01-07 13:58:15 +08:00
Steffen Schaumburg
dc28c31e02 Revert "Database: Disable alchemy pools" as that breaks the HUD (on PS at least)
This reverts commit 797c126318.
2010-12-26 19:16:38 +01:00
Steffen Schaumburg
eaaa6feb78 make it repopulate config.sites after recreate 2010-12-26 17:55:41 +01:00
Steffen Schaumburg
563efc0335 better fix for prevention of the crasher 2010-12-25 20:54:25 +01:00
Steffen Schaumburg
683d89389b Revert "prevent crasher when connecting to empty mysql (presumably this bug also applied to postgres)"
This reverts commit 2813bb7fe6.
2010-12-25 20:51:44 +01:00
Steffen Schaumburg
2813bb7fe6 prevent crasher when connecting to empty mysql (presumably this bug also applied to postgres) 2010-12-25 20:38:18 +01:00
Worros
da31ed2e5b Merge branch 'chaz' of git://github.com/ChazDazzle/fpdb-chaz 2010-12-22 13:29:06 +08:00
Worros
797c126318 Database: Disable alchemy pools
Want to use DBAPIs connection.row_factory so we can select() directly into a dict
2010-12-22 11:26:58 +08: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
Worros
b39637866c Database: Fix MySQL crasher
Tablename with an odd .fr character caused the insert in Hands to fail

Resolves: http://sourceforge.net/apps/mantisbt/fpdb/view.php?id=60
2010-12-20 15:21:43 +08:00
Steffen Schaumburg
86150294ec some gettextifications 2010-12-18 21:28:01 +01:00
Worros
7dd8b9de16 Rename gameTypeId to gametypeId
Go through and change all references to gameTypeId to gametypeId to make it consistent.

The database field is named with the lowercase version, and MySQL is case sensitive.

This may have been causing minor issues in multiple areas when attempting to join on gametype.
2010-12-10 22:31:12 +08:00
Worros
02204edc48 Give storeHands the ability to output test data
Will allow for regression testing of hand start time
2010-12-10 21:35:49 +08:00
Worros
267bf93fa5 Database: Comment out unused 'printdata'
Writing documentation for THP at the moment, and HandsActions data doesn't curently having any tests.

Comment out to simplify documentation for the moment.
2010-12-10 18:59:52 +08: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
Worros
352c40baab Merge branch 'chaz' of git://github.com/ChazDazzle/fpdb-chaz
Conflicts:
	pyfpdb/regression-test-files/cash/Stars/Flop/LHE-10max-USD-1.00-2.00-No_max_seats.txt
2010-12-06 11:51:16 +08:00
Worros
5fb23b3938 Move getSqlPlayerIDs next to the other version of the function 2010-12-06 11:49:28 +08: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
925db93157 * Added 'cacheSessions' flag
* Added a cacheSessions update call to import_file_dict() in fpdb_import.py
* Added updateSessionsCache() method to Hands
* Added storeSessionsCache() to Database --- WORK IN PROGRESS and set to pass
TO DOs
- add sessions queries to SQL
- complete storeSessionsCache() so it works like we've discussed (save for adding sessionId to HP)
- add SessionsCache keys
- add SessionsCache to the default table creation and deletion methods in Database.py
- update storeSessionsCache() and all the relevant db & sql code so it writes a sessionId to HP
2010-12-02 01:58:02 -05:00
Chaz
68b92b5130 Incremented the db version up to 146 and fixed 1 bug 2010-12-01 16:18:30 -05:00
Chaz
e0f76a508c reverted HudCache styleKey to include only YYMMDD - however, it now stores the d000000 date based off the tz & offset 2010-11-30 14:05:28 -05:00
Chaz
c6802484cb Updated init_hud_stat_vars() so that it no longer requires Filters.py for the offset calculations 2010-11-29 15:20:05 -06:00
Chaz
872ea008dd Updated database version to 145 2010-11-25 02:35:50 -06:00
Chaz
8026ba256a It's %H, not %h 2010-11-24 14:41:12 -06:00
Chaz
ee926ac9ca * Modified init_hud_stat_vars() so that it uses the timezone & day_start offset from Filters.py 2010-11-24 14:18:42 -06:00
Chaz
ac4cae5abf * Updated the methods, variables, and SQL in Database.py and SQL.py to add Hours to the HudCache.styleKey field 2010-11-24 14:14:29 -06:00
steffen123
43a5fb0f74 Merge branch 'carl' 2010-10-10 17:48:54 +02:00
steffen123
dfd47cfbfb unify some strings and remove misleading comment 2010-10-09 14:02:39 +02:00
Worros
791ebba895 Database: Remove trainiling whitespace
Non functional patch. Brining the tree closer to Forrests
2010-10-07 11:45:31 +08:00
steffen123
c961b49acb raise DB version for HA changes 2010-10-02 13:55:18 +02:00
Worros
9f64602338 Database, Importer: Convert print to log.info 2010-10-01 10:44:27 +08:00
Chaz
9c225a5b72 * Updated storeHandsPlayers() to insert via executemany() if 'saveActions' is False and via looped execute() to call get_last_insert_id() if 'saveActions' is True 2010-09-28 23:34:20 -04:00
Chaz
a76e34598d * Modified storeHandsPlayers() so it returns a dictionary of handId & playerId to handPlayerIds
* Filled storeHandsActions() with the required information
* Updated Hand.insert so that it calls storeHandsActions() and added the variable dbid_hpid to receive the new dictionary
2010-09-28 17:09:24 -04:00
Chaz
c1b2a0040c * Added HandsActions & Actions indexes & foreign keys to Database.py
* Added 'createActionsTable' to the SQL dictionary
* Updated create_tables so 'createActionsTable' would be called
* Updated dumpdatabase(), adding in u'Actions'
* Added action name & code info for filling the Actions table in FillDefaultData()
2010-09-28 16:59:37 -04:00
Worros
1ae01f1502 Database: Mark 27 Single draw as a lowball game 2010-09-24 13:47:24 +08:00
Worros
b8e66ee954 Winamax setup 2010-09-23 23:02:00 +08:00
Worros
591543d468 L10n updates: C->F 2010-09-23 00:10:32 +08:00
Worros
2e99fc38bc Update files to prepare iPoker 2010-09-06 11:21:22 +08:00
Worros
26eca40b31 More HandsActions stubbing 2010-09-02 00:19:31 +08:00
Worros
188201025f Database: rename storeHandsPlayers to storeHandsActions
As the stub function was supposed to be called
2010-09-01 20:51:23 +08:00
Worros
7aeb5e4531 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2010-09-01 11:08:04 +08:00
Worros
9a3d60e0b3 HandsActions: Stub in the remaining calls for HandsActions 2010-09-01 10:47:13 +08:00
sqlcoder
9704cd7fe5 routines to store site list in config 2010-08-31 22:34:48 +01:00
steffen123
b06c7763d8 dumpDB stores ignore for importTime and styleKey as those are runtime-dependant and outside of its scope 2010-08-22 07:54:03 +02:00
steffen123
6ba7f36a0e fix import of tourneys 2010-08-22 07:32:10 +02:00