diff --git a/opendelta/utils/interactive/templates/index.html b/opendelta/utils/interactive/templates/index.html index bf6d411..c6235f8 100644 --- a/opendelta/utils/interactive/templates/index.html +++ b/opendelta/utils/interactive/templates/index.html @@ -165,7 +165,7 @@ for (i = 0; i < coll.length; i++) { var submit = document.getElementById("submit"); submit.addEventListener("click", function() { const Http = new XMLHttpRequest(); - const url='/submit/?name='+array.join(";"); + const url='/submit/?name='+array.join("&name="); Http.open("GET", url); Http.send(); alert("Now go back to your console") diff --git a/opendelta/utils/interactive/web.py b/opendelta/utils/interactive/web.py index a7da490..fb2c055 100644 --- a/opendelta/utils/interactive/web.py +++ b/opendelta/utils/interactive/web.py @@ -107,7 +107,7 @@ class hello: class submit: def GET(self, _): global names - names = [name.strip("root.") for name in web.input().name.split(";")] + names = [name.strip("root.") for name in web.input(name=[]).name] app.stop() def interactive(model, port=8888):