Browse Source

Get graph from api for new map

Sebastian Lohff 1 year ago
parent
commit
53c70e8042
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      bgpdata/templates/bgpdata/new_new_map.html

+ 3
- 2
bgpdata/templates/bgpdata/new_new_map.html View File

@@ -109,8 +109,9 @@ drag = simulation => {
109 109
       .on("end", dragended);
110 110
 }
111 111
 
112
-
113
-d3.json("/api/v2/crawlrun/live/?with_graph").then((data) => {
112
+let path_tokens = window.location.pathname.split("/")
113
+let elem = path_tokens[path_tokens.length - 2]
114
+d3.json("/api/v2/crawlrun/" + elem + "/?with_graph").then((data) => {
114 115
   // Links data join
115 116
   data = data.graph
116 117
 

Loading…
Cancel
Save