From: Ant Zucaro Date: Sun, 1 Sep 2013 21:40:45 +0000 (-0400) Subject: Initial JSON call. X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=commitdiff_plain;h=de553d6d64d263f611653f0a0e92b7b728e1ffe1 Initial JSON call. --- diff --git a/xonstat/templates/nvd3_damage.mako b/xonstat/templates/nvd3_damage.mako index 933b461..a1e69b5 100644 --- a/xonstat/templates/nvd3_damage.mako +++ b/xonstat/templates/nvd3_damage.mako @@ -79,5 +79,9 @@ text { } - d3.json('/player/6/damage-v2?limit=5&game_type=duel', doDamageGraph); + % if game_type_cd is not None: + d3.json("${request.route_url('player_damage_data_v2', id=player_id, _query={'limit':limit, 'game_type':game_type_cd})}", doDamageGraph); + % else: + d3.json("${request.route_url('player_damage_data_v2', id=player_id, _query={'limit':limit})}", doDamageGraph); + % endif