Commit Graph

5 Commits

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