CSV-/Excel-Export der Bewertungen #45

Closed
opened 2026-04-08 22:22:18 +02:00 by tobias · 1 comment
Owner

Aus CLAUDE.md Offene TODOs. Export der Assessments in tabellarisches Format (CSV oder XLSX) für externe Auswertung — z.B. um in Excel Score-Verteilung pro Fraktion über die Zeit zu plotten.

Vorgehen

Neue Endpoints:

  • GET /api/export.csv?bundesland=NRW&from=2024-01-01&to=2026-04-01
  • GET /api/export.xlsx?...

Ein Datensatz pro Assessment, Spalten: Drucksache, Datum, Bundesland, Fraktionen, GWÖ-Score, Schwerpunkt-Felder, pro Fraktion: Wahlprogramm-Score + Parteiprogramm-Score, Themen-Tags.

Akzeptanzkriterien

  • CSV-Endpoint mit RFC-4180-konformem Quoting (Umlaute korrekt UTF-8)
  • XLSX via openpyxl
  • Filter nach Bundesland + Datumsbereich
  • Download-Button im Frontend in der Assessments-Liste
  • Keine Performance-Probleme bei >1000 Assessments (streaming response)
Aus CLAUDE.md `Offene TODOs`. Export der Assessments in tabellarisches Format (CSV oder XLSX) für externe Auswertung — z.B. um in Excel Score-Verteilung pro Fraktion über die Zeit zu plotten. ## Vorgehen Neue Endpoints: - `GET /api/export.csv?bundesland=NRW&from=2024-01-01&to=2026-04-01` - `GET /api/export.xlsx?...` Ein Datensatz pro Assessment, Spalten: Drucksache, Datum, Bundesland, Fraktionen, GWÖ-Score, Schwerpunkt-Felder, pro Fraktion: Wahlprogramm-Score + Parteiprogramm-Score, Themen-Tags. ## Akzeptanzkriterien - [ ] CSV-Endpoint mit RFC-4180-konformem Quoting (Umlaute korrekt UTF-8) - [ ] XLSX via `openpyxl` - [ ] Filter nach Bundesland + Datumsbereich - [ ] Download-Button im Frontend in der Assessments-Liste - [ ] Keine Performance-Probleme bei >1000 Assessments (streaming response)
tobias added the
todo
label 2026-04-08 23:16:42 +02:00
Author
Owner

Erledigt durch #58 / Commit 3631e54/api/auswertungen/export.csv liefert Long-Format-CSV (Spalten: drucksache, bundesland, wahlperiode, datum, partei, gwoe_score). UI-Button auf /auswertungen.

Erledigt durch #58 / Commit `3631e54` — `/api/auswertungen/export.csv` liefert Long-Format-CSV (Spalten: drucksache, bundesland, wahlperiode, datum, partei, gwoe_score). UI-Button auf `/auswertungen`.
Sign in to join this conversation.
No description provided.