Export: Klassifizierung (offen/dienstgebrauch/vertraulich) komplett entfernt

Dieser Commit ist enthalten in:
Claude Dev
2026-03-25 23:50:57 +01:00
Ursprung a2aaa061d4
Commit d0f99f4e5b
12 geänderte Dateien mit 5634 neuen und 47 gelöschten Zeilen

Datei anzeigen

@@ -22,11 +22,6 @@ logger = logging.getLogger("osint.report")
TEMPLATE_DIR = Path(__file__).parent / "report_templates"
LOGO_PATH = Path(__file__).parent / "static" / "favicon.svg"
CLASSIFICATION_LABELS = {
"offen": "Offen",
"dienstgebrauch": "Nur für den Dienstgebrauch",
"vertraulich": "Vertraulich",
}
FC_STATUS_LABELS = {
"confirmed": "Bestätigt",
@@ -250,7 +245,7 @@ LAGEBILD:
async def generate_pdf(
incident: dict, articles: list, fact_checks: list, snapshots: list,
scope: str, classification: str, creator: str, executive_summary_html: str,
scope: str, creator: str, executive_summary_html: str,
) -> bytes:
"""PDF-Report via WeasyPrint generieren."""
env = Environment(loader=FileSystemLoader(str(TEMPLATE_DIR)))
@@ -262,8 +257,6 @@ async def generate_pdf(
html_content = template.render(
incident=incident,
incident_type_label=incident_type_label,
classification=classification,
classification_label=CLASSIFICATION_LABELS.get(classification, classification),
report_date=now.strftime("%d.%m.%Y, %H:%M Uhr"),
creator=creator,
logo_base64=_get_logo_base64(),
@@ -298,7 +291,7 @@ async def generate_pdf(
async def generate_docx(
incident: dict, articles: list, fact_checks: list, snapshots: list,
scope: str, classification: str, creator: str, executive_summary_text: str,
scope: str, creator: str, executive_summary_text: str,
) -> bytes:
"""Word-Report via python-docx generieren."""
doc = Document()
@@ -342,17 +335,6 @@ async def generate_docx(
run.font.color.rgb = RGBColor(0x66, 0x66, 0x66)
doc.add_paragraph()
# Klassifizierung
class_label = CLASSIFICATION_LABELS.get(classification, classification)
class_para = doc.add_paragraph()
class_para.alignment = WD_ALIGN_PARAGRAPH.CENTER
run = class_para.add_run(f"{class_label}")
run.font.size = Pt(11)
run.font.bold = True
colors = {"offen": RGBColor(0x22, 0xc5, 0x5e), "dienstgebrauch": RGBColor(0xf0, 0xb4, 0x29), "vertraulich": RGBColor(0xef, 0x44, 0x44)}
run.font.color.rgb = colors.get(classification, RGBColor(0x88, 0x88, 0x88))
for _ in range(3):
doc.add_paragraph()