Provide the correct number of placeholder values. master
authorAnt Zucaro <azucaro@gmail.com>
Sat, 19 Jan 2019 14:00:34 +0000 (09:00 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 19 Jan 2019 14:00:34 +0000 (09:00 -0500)
xonstat/views/map.py

index 75c3373..7241a77 100644 (file)
@@ -401,10 +401,10 @@ def map_info(request):
     recent_games_count = 20
 
     for i in range(leaderboard_count-len(mapinfo_data['top_scorers'])):
-        mapinfo_data['top_scorers'].append(('-', '-', '-'))
+        mapinfo_data['top_scorers'].append(('-', '-', '-', '-'))
 
     for i in range(leaderboard_count-len(mapinfo_data['top_players'])):
-        mapinfo_data['top_players'].append(('-', '-', '-'))
+        mapinfo_data['top_players'].append(('-', '-', '-', '-'))
 
     for i in range(leaderboard_count-len(mapinfo_data['top_servers'])):
         mapinfo_data['top_servers'].append(('-', '-', '-'))