Commit Graph

33 Commits

Author SHA1 Message Date
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