From b8968591c595d7751b54710fdb089deffb2eaa0c Mon Sep 17 00:00:00 2001 From: steffen123 Date: Tue, 13 Jul 2010 20:21:05 +0200 Subject: [PATCH] TPS: display limitType and category --- pyfpdb/GuiTourneyPlayerStats.py | 2 ++ pyfpdb/SQL.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pyfpdb/GuiTourneyPlayerStats.py b/pyfpdb/GuiTourneyPlayerStats.py index 2ce1e2bb..7523f594 100644 --- a/pyfpdb/GuiTourneyPlayerStats.py +++ b/pyfpdb/GuiTourneyPlayerStats.py @@ -78,6 +78,8 @@ class GuiTourneyPlayerStats (GuiPlayerStats.GuiPlayerStats): # is column displayed, column heading, xalignment, formatting, celltype self.columns = [ ["siteName", True, "Site", 0.0, "%s", "str"] #,["tourney", False, "Tourney", 0.0, "%s", "str"] # true not allowed for this line + , ["category", True, "Cat.", 0.0, "%s", "str"] + , ["limitType", True, "Limit", 0.0, "%s", "str"] , ["currency", True, "Curr.", 0.0, "%s", "str"] , ["buyIn", True, "BuyIn", 1.0, "%3.2f", "str"] , ["fee", True, "Fee", 1.0, "%3.2f", "str"] diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index e6a39f2f..96a45d2c 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -2300,6 +2300,8 @@ class Sql: ,tt.currency AS currency ,(CASE WHEN tt.currency = "USD" THEN tt.buyIn/100.0 ELSE tt.buyIn END) AS buyIn ,tt.fee/100.0 AS fee + ,tt.category AS category + ,tt.limitType AS limitType ,p.name AS playerName ,COUNT(1) AS tourneyCount ,SUM(CASE WHEN tp.rank > 0 THEN 0 ELSE 1 END) AS unknownRank