fixed errors

This commit is contained in:
Marcel Gansfusz
2025-02-24 23:24:43 +01:00
parent 7737915e35
commit e273e4d788
3 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@@ -322,7 +322,7 @@ def make_savepath(
pfpath = pf[1] + "/" pfpath = pf[1] + "/"
catpath = CATEGORIES[int(cat)] + "/" catpath = CATEGORIES[int(cat)] + "/"
scpath = "" scpath = ""
if int(cat) in SUBCAT_CATEGORIES_I: if int(cat) in SUBCAT_CATEGORIES_I and subcat != "":
sc = get_subcatpath(subcat, int(cat), pf[0], lv[0]) sc = get_subcatpath(subcat, int(cat), pf[0], lv[0])
scpath = sc[1] + "/" scpath = sc[1] + "/"
savepath = UNIZEUG_PATH + lvpath + pfpath + catpath + scpath savepath = UNIZEUG_PATH + lvpath + pfpath + catpath + scpath

View File

@@ -317,8 +317,8 @@ async function uploadFile(formData) {
console.log("upload OK " + responseJSON["filename"]); console.log("upload OK " + responseJSON["filename"]);
console.log(response); console.log(response);
delete doc.pdf; delete doc.pdf;
delete doc; //delete doc;
document.getElementById("fname").value = responseJSON.filename; document.getElementById("name").value = responseJSON.filename;
doc = new PDFDocument( doc = new PDFDocument(
responseJSON.path, responseJSON.path,
responseJSON.fid, responseJSON.fid,