Commit Graph

431 Commits

Author SHA1 Message Date
Worros
eef755ac01 Merge branch 'master' of git://git.assembla.com/fpdb 2011-03-10 18:06:30 +08:00
Worros
e0124d2d11 Database: Reformat a some tournament results update code
Reformat to make life easier when debugging
2011-03-10 18:01:25 +08:00
Steffen Schaumburg
8a519699b5 update copyright year 2011-03-10 06:16:31 +01:00
Steffen Schaumburg
5a0f2946a4 fix many strings that weren't being picked up by gettext's parser 2011-03-10 04:15:53 +01:00
Steffen Schaumburg
c03d050337 string consistency fixes 2011-03-02 07:03:09 +01:00
Scott Wolchok
a6024e2859 enable WAL in sqlite 2011-02-27 17:33:05 -05:00
Scott Wolchok
635dbc9a11 Merge remote branch 'donoban/master' into donoban-merge 2011-02-26 18:21:25 -05:00
Steffen Schaumburg
99a0e04e3e Merge branch 'master' of git://github.com/swolchok/fpdb into scott
Conflicts:
	pyfpdb/Database.py
	pyfpdb/decimal_wrapper.py
2011-02-26 01:09:40 +01:00
Scott Wolchok
fc46b70c41 Rename decimal.py to decimal_wrapper.py so we don't break when
cdecimal is not installed.
2011-02-25 14:18:12 -05:00
DoNoBaN
37fcca55b9 Merge branch 'master' of git://git.assembla.com/fpdb
Conflicts:
	pyfpdb/DerivedStats.py
2011-02-25 18:14:20 +01:00
DoNoBaN
e169f32242 Added raiseToSteal stat 2011-02-25 15:37:11 +01:00
Steffen Schaumburg
140ad6be5f allow it to start when cdecimal is missing 2011-02-25 14:31:15 +01:00
Worros
3455b4ea69 Database: Make sqlite bool adapter use ints not strings
Scott Wolchok noted that the adapater was using strings, and possibly only working by luck.

Appears to give a 10-15% boost on a 10k hand import
2011-02-25 17:46:10 +08:00
Worros
e4a3de1272 Merge branch 'chaz' of git://github.com/ChazDazzle/fpdb-chaz 2011-02-17 11:28:44 +08:00
Worros
3d168cee6e Merge branch 'master' of git://git.assembla.com/donoban-fpdb 2011-02-13 23:47:15 +08:00
DoNoBaN
0a1389244d Added cold 4bet, squeeze and success steal
4bet and foldto3/4bet enabled for Detailed Stats

Removed street0 other raises (they was unused)
2011-02-12 14:11:41 +01:00
Worros
059ca2307f Database: def getSiteTourneyNos(self, site) 2011-02-11 17:53:18 +08:00
DoNoBaN
637257a63d Merge branch 'master' of git://git.assembla.com/fpdboz 2011-02-08 07:34:49 +01:00
Donoban
d4688633b3 Database.py code rewroten
line[X] replaced by line.append(), easy to read and mantain
2011-02-08 14:34:10 +08:00
Worros
f4729fb5f8 Database: Add Everest 2011-02-08 14:33:55 +08:00
DoNoBaN
3490ec8091 Merge branch 'master' of git://git.assembla.com/fpdboz 2011-02-08 07:25:51 +01:00
Worros
3fa682e07f Revert "Database.py code rewroten"
This reverts commit b1f62de4e5.
2011-02-04 23:46:06 +08:00
donoban
4b8a583659 Revert "Add support for specifying DB port"
This reverts commit 8d78e11a4f.
2011-02-04 07:49:17 +01:00
Worros
ae414f1bd6 Merge branch 'master' of git://repo.or.cz/fpbd-bostik 2011-02-03 12:17:19 +08:00
Donoban
b1f62de4e5 Database.py code rewroten
line[X] replaced by line.append(), easy to read and mantain
2011-02-03 02:50:51 +01:00
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
Mika Bostrom
8d78e11a4f Add support for specifying DB port
In case someone needs to connect to a DB engine in non-standard port,
defining the TCP port is required. This is a rare corner case which
should only arise when a given DB host runs multiple versions of the
same DB engine.

However, the support is relatively straightforward to implement and it
shouldn't conflict with any other options.
2011-01-16 10:43:36 +02:00
Worros
f12bc7bfaa Add printdata capability for Gametype info. 2011-01-07 13:58:15 +08: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
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