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:
parent
1350fc7f52
commit
5fb326e8bc
@ -153,7 +153,7 @@
|
||||
<div class="brand"><span class="dot"></span>GWÖ-Antragsprüfer</div>
|
||||
<div class="meta">
|
||||
<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>
|
||||
</header>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user