Make ranks an empty dictionary instead.
authorAnt Zucaro <azucaro@gmail.com>
Thu, 4 Jan 2018 22:28:10 +0000 (17:28 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Thu, 4 Jan 2018 22:28:10 +0000 (17:28 -0500)
xonstat/views/player.py

index 2ce2921..a22ff5c 100644 (file)
@@ -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,
             }