fix of the json upload format

This commit is contained in:
2026-08-04 20:42:06 +02:00
parent 33c65f21b6
commit 88f124c991
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -11864,6 +11864,7 @@ def batch_upload_page():
@app.route('/upload_csv_batch', methods=['POST'])
@csrf.exempt
def upload_csv_batch():
"""
Route for batch adding new items to the inventory via CSV.
@@ -11903,7 +11904,7 @@ def upload_csv_batch():
# 2. CSV Einlesen und Validieren
try:
df = pd.read_csv(csv_file)
df = pd.read_csv(csv_file, sep=';')
except Exception as e:
app.logger.error(f"[Upload {upload_session_id}] Fehler beim Lesen der CSV: {str(e)}")
return jsonify({"success": False, "message": f"Fehler beim Lesen der CSV: {str(e)}"}), 400