From 8e31309c554a08a1854095dfff8b32024437414f Mon Sep 17 00:00:00 2001 From: AIIrondev Date: Tue, 4 Aug 2026 21:55:23 +0200 Subject: [PATCH] fix of the json upload format --- Web/app.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Web/app.py b/Web/app.py index a2d8a51..b5fa923 100755 --- a/Web/app.py +++ b/Web/app.py @@ -11850,6 +11850,17 @@ def test_push_notification(): return jsonify({'success': False}), 500 +@app.route('/batch_upload', methods=['GET']) +def batch_upload_page(): + """ + Serves the HTML frontend for the batch CSV and image upload. + """ + # Check permissions if necessary, similar to your other routes + if 'username' not in session: + flash('Bitte melden Sie sich an.', 'error') + return redirect(url_for('login')) + + return render_template('upload_batch.html') def clean_db_field(val): """Bereinigt Werte, die fälschlicherweise als String-Listen oder mit Klammern aus der CSV kommen."""