]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Initial JSON call.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 1 Sep 2013 21:40:45 +0000 (17:40 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 1 Sep 2013 21:40:45 +0000 (17:40 -0400)
xonstat/templates/nvd3_damage.mako

index 933b46177d01ff947e228bf97e326420976fbc71..a1e69b586b8c9c171deb30fba48b1a56fb7140d1 100644 (file)
@@ -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
 </script>