fix: Scorecard Header Wahlperiode-String — 'NRW-WP18' wurde als 'WPNRW-WP18' gerendert

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) <noreply@anthropic.com>
This commit is contained in:
Dotty Dotter 2026-05-07 13:56:26 +02:00
parent 1350fc7f52
commit 5fb326e8bc

View File

@ -153,7 +153,7 @@
<div class="brand"><span class="dot"></span>GWÖ-Antragsprüfer</div> <div class="brand"><span class="dot"></span>GWÖ-Antragsprüfer</div>
<div class="meta"> <div class="meta">
<span>Matrix 2.0</span> <span>Matrix 2.0</span>
<span>{{ bundesland }}{% if wahlperiode %} · WP{{ wahlperiode }}{% endif %}</span> <span>{{ bundesland }}{% if wahlperiode %} · {{ wahlperiode.split('-')[-1] if '-' in wahlperiode else 'WP' ~ wahlperiode }}{% endif %}</span>
</div> </div>
</header> </header>