From: Ant Zucaro Date: Sat, 16 Jan 2016 22:55:46 +0000 (-0500) Subject: Reduce the number of fast caps shown on the map_info page. X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=commitdiff_plain;h=6ca697e28e9fc31f7a91df033f0fe2813c222d67 Reduce the number of fast caps shown on the map_info page. --- diff --git a/xonstat/views/map.py b/xonstat/views/map.py index f43ee35..506dcd9 100644 --- a/xonstat/views/map.py +++ b/xonstat/views/map.py @@ -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),