Update Python tools

This commit is contained in:
ajp_anton
2026-08-09 05:06:33 +00:00
parent 6d28257b54
commit 0dfb493ae1
3 changed files with 18 additions and 6 deletions
+3 -1
View File
@@ -126,12 +126,14 @@ for (const form of document.querySelectorAll("form[data-wait-for-result]")) {
return;
}
event.preventDefault();
// Disabled fields are omitted from FormData, so collect values first.
const formData = new FormData(form);
setWaiting(true);
showResult("Running...", "running");
try {
const response = await fetch(form.action, {
method: "POST",
body: new FormData(form),
body: formData,
headers: { Accept: "application/json" },
});
const data = await response.json();