diff --git a/src/report_generator.py b/src/report_generator.py index 789a57c..e2d70cf 100644 --- a/src/report_generator.py +++ b/src/report_generator.py @@ -153,6 +153,11 @@ LAGEBILD: # Robuster Parser: Akzeptiert JSON, Markdown-Listen oder Freitext lines = [] text = result.strip() + # Code-Fences entfernen (```json ... ```) + if text.startswith("```"): + text = re.sub(r"^```\w*\n?", "", text) + text = re.sub(r"\n?```$", "", text) + text = text.strip() # Fall 1: JSON-Antwort (Haiku gibt manchmal JSON zurück) if text.startswith("{"): diff --git a/src/report_templates/report.html b/src/report_templates/report.html index 14e9cac..3a2b4a3 100644 --- a/src/report_templates/report.html +++ b/src/report_templates/report.html @@ -76,7 +76,7 @@ tr:nth-child(even) { background: #f8f9fa; }
{{ incident_type_label }}
{{ incident.title }}
-
{{ incident.description or '' }}
+
{{ classification_label }}
Stand: {{ report_date }}