From 5fb326e8bcb63765bd6750bf30894223ee35e2c3 Mon Sep 17 00:00:00 2001 From: Dotty Dotter Date: Thu, 7 May 2026 13:56:26 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Scorecard=20Header=20Wahlperiode-String?= =?UTF-8?q?=20=E2=80=94=20'NRW-WP18'=20wurde=20als=20'WPNRW-WP18'=20gerend?= =?UTF-8?q?ert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wahlperiode_for() liefert 'NRW-WP18' (Bundesland-Praefix + WPnn). Ich hatte im Template nochmal 'WP' davor gehaengt → 'WPNRW-WP18'. Fix: Suffix-Teil nach Bindestrich nehmen ('WP18'), oder fallback 'WP'+Wert falls kein Bindestrich. Co-Authored-By: Claude Opus 4.7 (1M context) --- app/templates/v2/screens/scorecard_portrait.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/v2/screens/scorecard_portrait.html b/app/templates/v2/screens/scorecard_portrait.html index 043f5ab..f3bfc56 100644 --- a/app/templates/v2/screens/scorecard_portrait.html +++ b/app/templates/v2/screens/scorecard_portrait.html @@ -153,7 +153,7 @@
GWÖ-Antragsprüfer
Matrix 2.0 - {{ bundesland }}{% if wahlperiode %} · WP{{ wahlperiode }}{% endif %} + {{ bundesland }}{% if wahlperiode %} · {{ wahlperiode.split('-')[-1] if '-' in wahlperiode else 'WP' ~ wahlperiode }}{% endif %}