]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Return an empty list of ranks for JSON views.
authorAnt Zucaro <azucaro@gmail.com>
Thu, 4 Jan 2018 22:15:44 +0000 (17:15 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Thu, 4 Jan 2018 22:15:44 +0000 (17:15 -0500)
xonstat/views/player.py

index 41af4f11e2d2b4a9bb177de4474c4ece67dfbaea..2ce292176565685462123bf66f932a1d43b2c4e4 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          = 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,
             }