From 73fb61fa4718333da3104d4a3bc3c836533022c5 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Tue, 2 Dec 2014 22:46:20 -0500 Subject: [PATCH] Do not rank sole qualifiers. If a player is the only one with >= 32 Elo games, don't show their rank. They are the only one present in the pool! It makes no sense to say a person ranks in the ranking pool before showing status that way. --- xonstat/views/player.py | 1 + 1 file changed, 1 insertion(+) diff --git a/xonstat/views/player.py b/xonstat/views/player.py index 6b0b945..7e4dfcb 100644 --- a/xonstat/views/player.py +++ b/xonstat/views/player.py @@ -345,6 +345,7 @@ def get_ranks(player_id): "from player_ranks " "group by game_type_cd) overall " "where pr.game_type_cd = overall.game_type_cd " + "and max_rank > 1 " "and player_id = :player_id " "order by rank").\ params(player_id=player_id).all() -- 2.39.2