diff --git a/app/bundeslaender.py b/app/bundeslaender.py index 71b46c5..f90bd2d 100644 --- a/app/bundeslaender.py +++ b/app/bundeslaender.py @@ -141,7 +141,10 @@ BUNDESLAENDER: dict[str, Bundesland] = { name="Brandenburg", parlament_name="Landtag Brandenburg", wahlperiode=8, - wahlperiode_start="2024-10-23", + # Wahltag (statt Konstituierende Sitzung am 2024-10-23), damit + # die Geschäftsordnungs-Drucksachen der konstituierenden Sitzung + # in den Plausibilitäts-Check fallen (siehe #61 Bug 4). + wahlperiode_start="2024-09-22", naechste_wahl="2029-09-23", regierungsfraktionen=["SPD", "BSW"], landtagsfraktionen=["SPD", "AfD", "CDU", "BSW"], diff --git a/app/parlamente.py b/app/parlamente.py index 87dcb8a..9cbad29 100644 --- a/app/parlamente.py +++ b/app/parlamente.py @@ -770,6 +770,17 @@ class PortalaAdapter(ParlamentAdapter): return [] results = self._parse_hit_list_html(report_resp.text, query_filter=query) + # Server-side ETYPF/DTYPF filter is best-effort across portala + # instances — BB/RP let "Kleine Anfrage" und "Beschluss- + # empfehlung" durch (siehe #61 Bug 2/3). Client-side strict + # filter on the parsed typ-string. Whitelist via Substring, + # damit "Antrag gemäß § 79 GO" und ähnliche Subtypen passieren. + if self.document_type: + target = self.document_type.lower() + results = [ + d for d in results + if target in (d.typ or "").lower() + ] return results[:limit] except Exception: