Commit Graph
41 Commits
Author SHA1 Message Date
sqlcoder 2efc6f1c8e use lower case for keys into stat_dict as postgres returns column names in lower case 2009-04-27 21:29:02 +01:00
sqlcoder 3c815ed0e8 steal stat fixes to match pokertracker 2009-04-26 22:20:24 +01:00
sqlcoder 6cee8b7a97 always release locks when db work finished 2009-04-26 21:47:28 +01:00
sqlcoder b266b48c33 add rollback to release locks when db reads are finished 2009-04-26 21:38:04 +01:00
sqlcoder 85b03ef720 fix 3bet stat bug in storeHudCache2 2009-04-26 21:31:05 +01:00
sqlcoder ab1e8cf670 added new faster version of storeHudCache routine, storeHudCache2
Set the fastStoreHudCache variable to True to test this out.
In the best case it only does one DB operation (update), if
this fails because the record does not exist it does an insert.
2009-01-03 19:55:54 +00:00
sqlcoder cc31f86269 add profit/100 hands stat 2009-01-03 18:00:44 +00:00
sqlcoder 257dd35c93 let fpdb_db routine work out which bits of config to use for connection 2009-01-03 17:59:48 +00:00
sqlcoder 26ad0ff91b Merge branch 'master' of git://git.assembla.com/fpdboz 2009-01-03 17:10:58 +00:00
sqlcoder e469202b66 Merge branch 'master' of git://git.assembla.com/fpdboz 2008-12-28 09:50:33 +00:00
sqlcoder f9a805f5cd add do_commit(config) method to fpdb_db.py to make creating
a db connection easier. Used this in guiplayerstats.py to
create a separate connection and added commit to stop
locks here blocking hand imports.
2008-12-17 23:03:17 +00:00
sqlcoder 695b3a53cf update mysql query for position stats (postgres one still to do ...) 2008-12-15 23:15:54 +00:00
sqlcoder f1be7c2ec0 saveActions setting was supposed to be True in 'official' code 2008-12-14 11:31:47 +00:00
sqlcoder 2ae8c792a6 playerstats: round value for variance before displaying, correct
calculation of $/hand
2008-12-14 03:07:05 +00:00
sqlcoder 791068d24f refine column headings, handle null stats and remove debug message 2008-12-14 02:50:09 +00:00
sqlcoder 26506b3421 use new routine in fpdb_simple to create indexes 2008-12-14 02:42:07 +00:00
sqlcoder fb6b8e5a5b add variable at top of file to control whether actions are saved
or not and commented out timing debug statement
2008-12-14 02:38:09 +00:00
sqlcoder d4e03424bf call routines to drop and recreate some indexes and foreign
keys before and after bulk import
2008-12-14 02:30:19 +00:00
sqlcoder a429cbb6e1 added new routines to drop and recreate indexes and foreign keys.
These could be called from any combination of standalone menu options,
as part of the database re-create option or as part of the bulk
import option
2008-12-14 02:23:40 +00:00
sqlcoder ef060cd96a playerstats: refine mysql query to stop divide by zero errors and
format figures properly
2008-12-13 14:47:03 +00:00
sqlcoder c533822c96 playerstats: refine postgres query to stop divide by zero errors and
format figures properly
2008-12-13 14:33:12 +00:00
sqlcoder 6e72d602e9 playerstats changes: modify columns shown, use left join in case
playeractions data is missing, correct postgres syntax but now
giving divide by zero error
2008-12-13 14:15:03 +00:00
sqlcoder e9fa9e4324 revert back to carl's version, previous simplification of playerstats
query doesn't allow calculation of things like variance as added
by Eleatic Stranger
2008-12-13 13:18:16 +00:00
sqlcoder 3148d0398c pulled from fpdboz 2008-12-13 03:35:31 +00:00
sqlcoder f51d760a54 revise position stats query using hudcache data and create postgres version 2008-12-13 03:17:54 +00:00
sqlcoder cb2e8a96ef use hudcache query for all player stats and tidy up output 2008-12-13 02:18:02 +00:00
sqlcoder 167c0de3b5 include antes in hudcache totalProfit figure 2008-12-13 02:02:07 +00:00
sqlcoder a03a6852e8 convert tabs to spaces 2008-12-13 01:32:44 +00:00
sqlcoder a426ec9434 include antes in net profit calculation 2008-12-13 01:15:25 +00:00
sqlcoder b62d1fb2a9 remove connection code from fpdb_import.py and use fpdb_db.py instead 2008-12-10 23:22:47 +00:00
sqlcoder 1a43ccf2da remove redundant unique keyword in create table statements 2008-12-09 23:38:40 +00:00
sqlcoder 71a587faca mods to use insert_id() instead of repeated selects and get postgres working 2008-12-09 00:29:39 +00:00
sqlcoder 30e61901d6 use spaces not tabs and get first part of insert_id() code working again 2008-12-08 01:38:06 +00:00
sqlcoder 3ea95acb0c add db param to allow insert_id() matching fpdb_parse_logic.py 2008-12-08 00:55:03 +00:00
sqlcoder 4dc15bfd94 pulled and merged from fpdboz 2008-12-07 23:38:33 +00:00
sqlcoder ec01f7ae40 move code closer to carl's repo 2008-12-07 17:23:38 +00:00
sqlcoder 160db08689 calc totalprofit for hud 2008-12-03 23:14:03 +00:00
sqlcoder 567d585a54 script to update index choices 2008-12-02 23:28:06 +00:00
sqlcoder a824814c0a sqlcoder initial updates 2008-12-02 00:15:50 +00:00
sqlcoder 5884f2f66b Merge ../fpdb 2008-12-02 00:06:38 +00:00
sqlcoder 8bf01a13e7 Start of fpdb-sql repository 2008-12-02 00:00:44 +00:00