fix of the json upload format

This commit is contained in:
2026-08-03 18:34:27 +02:00
parent 579a0ddb75
commit 58d94b716f
2 changed files with 11 additions and 3 deletions
+5
View File
@@ -11860,7 +11860,12 @@ def batch_upload_page():
return render_template('upload_batch.html')
from flask_wtf.csrf import CSRFProtect
csrf = CSRFProtect(app)
@app.route('/upload_csv_batch', methods=['POST'])
@csrf.exempt
def upload_csv_batch():
"""
Route for batch adding new items to the inventory via CSV.