]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Provide the correct number of placeholder values.
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 75c3373359f95ce7ccb212f671cad7ed46b232c9..7241a77d903e4de72fca98df3825a21656b84b33 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(('-', '-', '-'))