From: Ant Zucaro Date: Tue, 9 Apr 2013 02:26:44 +0000 (-0400) Subject: Win/loss should use scoreboardpos, not rank. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2ce4312649e985cbdd0e1a0e4872dce5c35f7b46;p=xonotic%2Fxonstat.git Win/loss should use scoreboardpos, not rank. --- diff --git a/xonstat/views/player.py b/xonstat/views/player.py index e3b3853..a183114 100644 --- a/xonstat/views/player.py +++ b/xonstat/views/player.py @@ -75,12 +75,12 @@ def get_games_played(player_id): "g.game_type_cd, " "CASE " "WHEN g.winner = pgs.team THEN 1 " - "WHEN pgs.rank = 1 THEN 1 " + "WHEN pgs.scoreboardpos = 1 THEN 1 " "ELSE 0 " "END win, " "CASE " "WHEN g.winner = pgs.team THEN 0 " - "WHEN pgs.rank = 1 THEN 0 " + "WHEN pgs.scoreboardpos = 1 THEN 0 " "ELSE 1 " "END loss " "FROM games g, "