sqlcoder
b3b99778c9
make player stats use new single detailed query and format the output in python ready for more detailed stats
2009-05-17 22:59:09 +01:00
sqlcoder
e2137a596a
screwed up previous release using branches, this should work now (added hc fields as well as hp, made new fields NULLable, use 3b not 3b4b fields), next job calculate some of these fields ...
2009-05-17 17:26:05 +01:00
Worros
a5884ff7ae
Fix createHandsActionTable
2009-05-17 12:41:47 +08:00
sqlcoder
339f48582c
add more stat fields to db
2009-05-17 00:06:53 +01:00
sqlcoder
3e805f03b1
correct avg seats calculation, select limits in reverse order, i.e. highest first
2009-05-10 22:37:02 +01:00
sqlcoder
b7ee425558
add seats to filters and stats queries
2009-05-08 22:41:09 +01:00
sqlcoder
0ad2b06e97
Add all/none checkboxes for limits, tidy up stats tables some more
2009-05-04 23:14:33 +01:00
sqlcoder
f9a769ebd3
add summaries to position stats and allow choice of levels
2009-05-04 20:12:41 +01:00
sqlcoder
87f2dde961
add 3bet to stats pages and make column and heading choices configurable by editing lists in the init code
2009-05-04 02:10:05 +01:00
sqlcoder
fddb29b3b8
add steal stat to positional stats and fix for postgres
2009-05-03 01:31:15 +01:00
sqlcoder
79b3dba2dd
add steal stat to playerstats
2009-05-02 21:32:47 +01:00
Worros
1939979e3c
Make Grapher work with limits
2009-04-14 21:31:29 +08:00
Worros
15d7e1fab5
Add a couple of queries for GUI building
2009-04-11 17:10:00 +08:00
Worros
c673897fa3
Merge branch 'master' into siteneutral
...
Conflicts:
pyfpdb/fpdb_import.py
pyfpdb/fpdb_save_to_db.py
pyfpdb/fpdb_simple.py
2009-03-24 21:46:18 +09:00
Worros
6e021ea3a4
Remove old graph queries from file
2009-03-22 18:56:51 +09:00
Worros
ae4704b8dc
First working(?) version of siteneutral import
2009-03-21 21:23:51 +09:00
Worros
b062ed6e70
Add query from Eleatic Stranger on 2+2
...
Preliminary query for analysing hole cards
2009-03-10 00:34:07 +09:00
Worros
659f0bb508
Grapher: Fix Postgres to work again
2008-12-19 17:27:18 +09:00
Worros
db6a8c5b31
Grapher: Make date ranges work - MySQL
2008-12-19 17:21:58 +09:00
Worros
49aa8921e3
Grapher: Update to support mutiple sites and players
...
Makes sites actually selectable via checkboxes.
Removed the sitename from the graph string for the moment - How that
string is generated needs a major overhaul
2008-12-19 16:52:32 +09:00
sqlcoder
695b3a53cf
update mysql query for position stats (postgres one still to do ...)
2008-12-15 23:15:54 +00:00
sqlcoder
2ae8c792a6
playerstats: round value for variance before displaying, correct
...
calculation of $/hand
2008-12-14 03:07:05 +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
Worros
e8bf2d8a22
Additional Player stats from Eleatic Stranger
...
Variance and $/hand
2008-12-13 14:03:53 +09: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
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
Worros
90803b297f
PlayerStat update - Postgres fixes (still failing)
...
Fixed parameter passing to execute - psycopg2 appears to be a bit fussy
about how parameters are passed.
Main query still doesn't work.
psycopg2.DataError: division by zero - appears to be caused by
,round(100*sum(wonAtSD)/sum(sawShowdown)) AS wmsd
Stuck there.
2008-12-11 23:42:33 +09:00
sqlcoder
1a43ccf2da
remove redundant unique keyword in create table statements
2008-12-09 23:38:40 +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
Worros
977e954574
Fixups to GuiPlayerStats
...
Now sets up and obeys the radio buttons more correctly.
Also reads the names from the text box, and replaces <player_test> in
the sql query.
2008-12-07 17:06:01 +09:00
Mika Bostrom
19c0328955
Change syntax for CREATE INDEX... for postgresql
2008-12-06 21:14:39 +02:00
Worros
1f7f3f7187
Fix MySQL 'ADD INDEX' syntax, add functions to create_tables
2008-12-03 18:18:20 +09:00
Worros
165ca5bf19
Oops - fix last commit
2008-12-03 17:41:20 +09:00
Worros
f25e524c06
Add sqlcoders indexes to query file
2008-12-03 17:37:31 +09:00
Worros
bac92f7b6e
playerStats query from sqlcoder - massive whitepsace churn - Apologies
2008-12-03 17:00:11 +09:00
Worros
e7650427b0
Initial placement of playerStatsByPosition
...
Doesn't do much thats useful yet - hard coded to nl and playerid=3
2008-12-03 16:36:49 +09:00
sqlcoder
a824814c0a
sqlcoder initial updates
2008-12-02 00:15:50 +00:00
Worros
6c4c450f07
Fix for postgres graph query - Remove column names to fix syntax error
2008-11-27 10:28:19 +09:00
Worros
34e374a55e
Patch from sqlcoder to make the query for the profit graph smarter/faster
2008-11-14 08:15:28 +10:00
Worros
79651706f6
Make GuiGraphViewer use the query file.
...
Make minor adjustment to Graph
2008-10-08 19:53:25 +08:00
Worros
6aca36b564
Moved SHOW TABLES query to query dict as list_tables
...
Added failing tests for Postgres until table deletion and table listing is fixed.
2008-10-08 03:12:38 +08:00
Carl Gherardi
66033036cc
Adds table create SQL to file. Included empty stubs for SQLite.
2008-10-07 17:25:24 +08:00
Carl Gherardi
e6fa946835
Add drop_table query.
...
Syntax verified against MySQL, PostgreSQL and SQLite docs
2008-10-07 14:47:24 +08:00
Carl Gherardi
83fa3901fe
New file for DB queries used in fpdb.
...
Currently just a framework and simple CLI
2008-10-07 14:11:48 +08:00