in between state before converting to pathlib

This commit is contained in:
Marcel Gansfusz
2025-10-28 19:32:01 +01:00
parent 856c401c06
commit d6508c739d
9 changed files with 104 additions and 51 deletions

View File

@@ -285,7 +285,7 @@ function submitPdf(eve) {
async function submitForm(formData) {
try {
const updateEventSource = new EventSource(
"http://127.0.0.1:8000/get_censor_status/" + doc.fID,
window.location + "get_censor_status/" + doc.fID,
);
modal.style.display = "flex";
// console.log("http://127.0.0.1:8000/get_censor_status/" + doc.fID);
@@ -295,7 +295,7 @@ async function submitForm(formData) {
upload_status.innerText =
"Censoring Page " + data.page + "/" + data.pages;
});
const response = await fetch("http://127.0.0.1:8000/submit", {
const response = await fetch(window.location + "submit", {
method: "POST",
body: formData,
});
@@ -338,7 +338,7 @@ function uploadPdf(eve) {
}
async function uploadFile(formData) {
try {
const response = await fetch("http://127.0.0.1:8000/uploadfile", {
const response = await fetch(window.location + "uploadfile", {
method: "POST",
body: formData,
});

View File

@@ -1,4 +1,4 @@
var url = "http://127.0.0.1:8000/search/";
var url = window.location + "search/";
var lid = null;
var pid = null;
var activeAutocompletion = null;