]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Reduce the number of fast caps shown on the map_info page.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 16 Jan 2016 22:55:46 +0000 (17:55 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 16 Jan 2016 22:55:46 +0000 (17:55 -0500)
xonstat/views/map.py

index f43ee35efd17b88bb12db01ef8f56d519f85e906..506dcd97369f84723bf16a27c97138461666006f 100644 (file)
@@ -112,13 +112,14 @@ def _map_info_data(request):
                 group_by(Server.name).\
                 group_by(Server.server_id).all()[0:leaderboard_count]
 
+        # TODO make this a configuration parameter to be set in the settings
         # top captimes
         captimes_raw = DBSession.query(Player.player_id, Player.nick,
             PlayerCaptime.fastest_cap, PlayerCaptime.game_id).\
                 filter(PlayerCaptime.map_id == map_id).\
                 filter(Player.player_id == PlayerCaptime.player_id).\
                 order_by(PlayerCaptime.fastest_cap).\
-                limit(25).\
+                limit(10).\
                 all()
 
         captimes = [Captime(c.player_id, html_colors(c.nick),