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 933b461..a1e69b5 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>