From: Ant Zucaro Date: Thu, 4 Jan 2018 22:15:44 +0000 (-0500) Subject: Return an empty list of ranks for JSON views. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2fbef19c83977561defcc8486576117804f85339;p=xonotic%2Fxonstat.git Return an empty list of ranks for JSON views. --- diff --git a/xonstat/views/player.py b/xonstat/views/player.py index 41af4f1..2ce2921 100644 --- a/xonstat/views/player.py +++ b/xonstat/views/player.py @@ -527,7 +527,7 @@ def player_info_data(request): overall_stats = get_overall_stats(player_id) fav_maps = get_fav_maps(player_id) elos = get_elos(player_id) - ranks = get_ranks(player_id) + ranks = [] medals = get_player_medals(player_id) recent_games = get_recent_games(player_id) cake_day = is_cake_day(player.create_dt) @@ -823,7 +823,7 @@ def player_hashkey_info_data(request): 'overall_stats':overall_stats, 'fav_maps':fav_maps, 'elos':elos, - 'ranks':ranks, + 'ranks':[], 'most_recent_game':most_recent_game, }