Fix: Description vom Deckblatt entfernt + Code-Fence Bereinigung im Parser
- Deckblatt zeigt nur noch Titel, Typ, Klassifizierung (keine Description) - Parser entfernt Markdown Code-Fences vor JSON-Parsing
Dieser Commit ist enthalten in:
@@ -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("{"):
|
||||
|
||||
@@ -76,7 +76,7 @@ tr:nth-child(even) { background: #f8f9fa; }
|
||||
<img src="data:image/svg+xml;base64,{{ logo_base64 }}" class="cover-logo" alt="AegisSight">
|
||||
<div class="cover-type">{{ incident_type_label }}</div>
|
||||
<div class="cover-title">{{ incident.title }}</div>
|
||||
<div class="cover-subtitle">{{ incident.description or '' }}</div>
|
||||
|
||||
<div class="cover-classification {{ classification }}">{{ classification_label }}</div>
|
||||
<div class="cover-meta">
|
||||
<div>Stand: {{ report_date }}</div>
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren