TPS displays ITM%
This commit is contained in:
parent
913fa7d7d8
commit
33760fae9c
|
@ -80,11 +80,11 @@ class GuiTourneyPlayerStats (threading.Thread):
|
||||||
, ["buyIn", True, "BuyIn", 1.0, "%3.2f", "str"]
|
, ["buyIn", True, "BuyIn", 1.0, "%3.2f", "str"]
|
||||||
, ["playerName", False, "Name", 0.0, "%s", "str"] # true not allowed for this line (set in code)
|
, ["playerName", False, "Name", 0.0, "%s", "str"] # true not allowed for this line (set in code)
|
||||||
, ["tourneyCount", True, "#", 1.0, "%1.0f", "str"]
|
, ["tourneyCount", True, "#", 1.0, "%1.0f", "str"]
|
||||||
|
, ["itm", True, "ITM%", 1.0, "%3.2f", "str"]
|
||||||
, ["1st", False, "1st", 1.0, "%1.0f", "str"]
|
, ["1st", False, "1st", 1.0, "%1.0f", "str"]
|
||||||
, ["2nd", True, "2nd", 1.0, "%1.0f", "str"]
|
, ["2nd", True, "2nd", 1.0, "%1.0f", "str"]
|
||||||
, ["3rd", True, "3rd", 1.0, "%1.0f", "str"]
|
, ["3rd", True, "3rd", 1.0, "%1.0f", "str"]
|
||||||
, ["unknownRank", True, "unknown", 1.0, "%1.0f", "str"]
|
, ["unknownRank", True, "unknown", 1.0, "%1.0f", "str"]
|
||||||
#, ["itm", True, "ITM", 1.0, "%2.2f", "str"]
|
|
||||||
#, ["roi", True, "ROI", 1.0, "%3.1f", "str"]
|
#, ["roi", True, "ROI", 1.0, "%3.1f", "str"]
|
||||||
, ["invested", True, "Invested", 1.0, "%3.2f", "str"]
|
, ["invested", True, "Invested", 1.0, "%3.2f", "str"]
|
||||||
, ["profit", True, "Profit", 1.0, "%3.2f", "str"]]
|
, ["profit", True, "Profit", 1.0, "%3.2f", "str"]]
|
||||||
|
|
|
@ -2264,10 +2264,11 @@ class Sql:
|
||||||
,(CASE WHEN tt.currency = "USD" THEN tt.buyIn/100.0 ELSE tt.buyIn END) AS buyIn
|
,(CASE WHEN tt.currency = "USD" THEN tt.buyIn/100.0 ELSE tt.buyIn END) AS buyIn
|
||||||
,p.name AS playerName
|
,p.name AS playerName
|
||||||
,COUNT(1) AS tourneyCount
|
,COUNT(1) AS tourneyCount
|
||||||
|
,SUM(CASE WHEN tp.rank > 0 THEN 0 ELSE 1 END) AS unknownRank
|
||||||
|
,SUM(CASE WHEN winnings > 0 THEN 1 ELSE 0 END)/(COUNT(1) - SUM(CASE WHEN tp.rank > 0 THEN 0 ELSE 1 END)) AS itm
|
||||||
,SUM(CASE WHEN rank = 1 THEN 1 ELSE 0 END) AS 1st
|
,SUM(CASE WHEN rank = 1 THEN 1 ELSE 0 END) AS 1st
|
||||||
,SUM(CASE WHEN rank = 2 THEN 1 ELSE 0 END) AS 2nd
|
,SUM(CASE WHEN rank = 2 THEN 1 ELSE 0 END) AS 2nd
|
||||||
,SUM(CASE WHEN rank = 3 THEN 1 ELSE 0 END) AS 3rd
|
,SUM(CASE WHEN rank = 3 THEN 1 ELSE 0 END) AS 3rd
|
||||||
,SUM(CASE WHEN tp.rank > 0 THEN 0 ELSE 1 END) AS unknownRank
|
|
||||||
,SUM(tp.winnings)/100.0 AS profit
|
,SUM(tp.winnings)/100.0 AS profit
|
||||||
,SUM(tt.buyin+tt.fee)/100.0 AS invested
|
,SUM(tt.buyin+tt.fee)/100.0 AS invested
|
||||||
from TourneysPlayers tp
|
from TourneysPlayers tp
|
||||||
|
|
Loading…
Reference in New Issue
Block a user