fix of the json upload format
This commit is contained in:
+11
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user