From fe806ccea16815a22e266dae6ecf70ba62072af9 Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Sun, 10 May 2009 22:59:35 +0100 Subject: [PATCH] update playerstats for new avgseats column and seats filter (is this window redundant now?) --- pyfpdb/GuiPlayerStats.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyfpdb/GuiPlayerStats.py b/pyfpdb/GuiPlayerStats.py index 432cd283..66b312ce 100644 --- a/pyfpdb/GuiPlayerStats.py +++ b/pyfpdb/GuiPlayerStats.py @@ -51,6 +51,7 @@ class GuiPlayerStats (threading.Thread): "Games" : False, "Limits" : True, "LimitSep" : True, + "Seats" : True, "Dates" : False, "Button1" : True, "Button2" : False @@ -123,7 +124,8 @@ class GuiPlayerStats (threading.Thread): tmp = self.refineQuery(tmp, playerids, sitenos, limits, seats) self.cursor.execute(tmp) result = self.cursor.fetchall() - cols = 18 + cols = 19 + rows = len(result)+1 # +1 for title row self.stats_table = gtk.Table(rows, cols, False) self.stats_table.set_col_spacings(4) @@ -131,7 +133,7 @@ class GuiPlayerStats (threading.Thread): vbox.add(self.stats_table) # Create header row - titles = ("Game", "Hands", "VPIP", "PFR", "PF3", "Steals", "Saw_F", "SawSD", "WtSDwsF", "W$SD", "FlAFq", "TuAFq", "RvAFq", "PoFAFq", "Net($)", "BB/100", "$/hand", "Variance") + titles = ("Game", "Hands", "VPIP", "PFR", "PF3", "Steals", "Saw_F", "SawSD", "WtSDwsF", "W$SD", "FlAFq", "TuAFq", "RvAFq", "PoFAFq", "Net($)", "BB/100", "$/hand", "Variance", "AvgSeats") col = 0 row = 0