From d616b75af42f4a26b1b1dbd4ec604334705fed8d Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Thu, 4 Jan 2018 17:28:10 -0500 Subject: [PATCH] Make ranks an empty dictionary instead. --- xonstat/views/player.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xonstat/views/player.py b/xonstat/views/player.py index 2ce2921..a22ff5c 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 = [] + ranks = {} medals = get_player_medals(player_id) recent_games = get_recent_games(player_id) cake_day = is_cake_day(player.create_dt) @@ -811,7 +811,7 @@ def player_hashkey_info_data(request): overall_stats = get_overall_stats(player.player_id) fav_maps = get_fav_maps(player.player_id) elos = get_elos(player.player_id) - ranks = get_ranks(player.player_id) + ranks = {} most_recent_game = get_recent_games(player.player_id, 1)[0] except Exception as e: @@ -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