From 2fbef19c83977561defcc8486576117804f85339 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Thu, 4 Jan 2018 17:15:44 -0500 Subject: [PATCH] Return an empty list of ranks for JSON views. --- xonstat/views/player.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, } -- 2.39.2