Commit Graph

68 Commits

Author SHA1 Message Date
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
5111eb1a8f remove redundant db variable 2009-05-02 21:39:48 +01:00
sqlcoder
79b3dba2dd add steal stat to playerstats 2009-05-02 21:32:47 +01:00
Worros
ee1186bd57 Add ability for Filters to hide() panes
Also add ability to register a callback and name 2 buttons on hte left
panel
2009-04-17 12:44:43 +08:00
Worros
15e31eccb2 Make player and positional stats use Filters 2009-04-11 20:07:50 +08:00
Ray
64f1f17d7c Make player stats rows not expand = prettier. 2009-01-26 20:02:01 -05: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
791068d24f refine column headings, handle null stats and remove debug message 2008-12-14 02:50:09 +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
3148d0398c pulled from fpdboz 2008-12-13 03:35:31 +00:00
sqlcoder
cb2e8a96ef use hudcache query for all player stats and tidy up output 2008-12-13 02:18:02 +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
Worros
9ca0574d78 Really basic check that username exists 2008-12-10 21:21:43 +09: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
Worros
88075bc4f2 Colorise the stats rows, add refresh button
Refresh button destroys table at the moment.
2008-12-06 20:50:06 +09:00
Worros
803491e6fd Add new GUI insterface for players stats
First pass at displaying player stats. Only works if your player id is
3, and you play nl
2008-12-06 19:08:07 +09:00