]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Do not rank sole qualifiers.
authorAnt Zucaro <azucaro@gmail.com>
Wed, 3 Dec 2014 03:46:20 +0000 (22:46 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Wed, 3 Dec 2014 03:46:20 +0000 (22:46 -0500)
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

index 6b0b9459f8abe760bdf0f3e211b6fee0e26c3bdb..7e4dfcbbe33f6ea1e067abadfeef1548cb7b1b04 100644 (file)
@@ -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()