From: Ant Zucaro Date: Wed, 3 Dec 2014 03:46:20 +0000 (-0500) Subject: Do not rank sole qualifiers. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=73fb61fa4718333da3104d4a3bc3c836533022c5;p=xonotic%2Fxonstat.git 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. --- 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()