From 4922dbee9535498128487a34dca8bebb3b89dc2e Mon Sep 17 00:00:00 2001 From: Abdulraahman Dabbagh <1924466@stud.hs-mannheim.de> Date: Wed, 25 Jun 2025 16:59:32 +0200 Subject: [PATCH] =?UTF-8?q?Formatierung=20durch=20Black=20=C3=BCbernommen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/backend/spacy-service/save_training_entry.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/project/backend/spacy-service/save_training_entry.py b/project/backend/spacy-service/save_training_entry.py index 9ca4917..5029c69 100644 --- a/project/backend/spacy-service/save_training_entry.py +++ b/project/backend/spacy-service/save_training_entry.py @@ -4,9 +4,7 @@ import json app = Flask(__name__) -ANNOTATION_FILE = ( - "spacy_training/annotation_data.json" # relativer Pfad im Container/Projekt -) +ANNOTATION_FILE = "spacy_training/annotation_data.json" @app.route("/api/spacy-training-entry", methods=["POST"]) @@ -23,7 +21,7 @@ def append_training_entry(): else: data = [] - # Optional: Duplikat vermeiden + # Duplikat vermeiden if new_entry in data: return jsonify({"message": "Eintrag bereits vorhanden."}), 200