X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Fviews%2Fplayer.py;h=a183114bd341dbafd0767ad6b0ce290dbad1e4ad;hb=2ce4312649e985cbdd0e1a0e4872dce5c35f7b46;hp=e3b385337cd5ccffea7befdec97d0162374041d7;hpb=683beea4a14c6f3d43e81a33b2d2d80ddb106621;p=xonotic%2Fxonstat.git 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, "