fixes: immunity outcomes without political connection, ORF fee rows, dropped WKStA investigations
- parlament.items (parser 3): a committee finding of no connection to the political activity (Art. 57 Abs. 3 B-VG) means prosecution may proceed; it was left at 'requested'. Authority and case number no longer run into the following sentence on older reports. - rtr.medientransparenz (parser 2): notice type 31 is the ORF's licence-fee income under section 31 ORF-G, not a payment to an organisation named after the paragraph. - enrich.legal: 'Einstellung der Ermittlungen' is proceedings_dropped, not an investigation. - reparse -p kinds=a,b replays only responses of these request kinds (no stale sweep then). - migration 0010 removes the wrong ORF rows and organisations and re-queues the affected headlines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d2039a9dc3
commit
f2d72fe464
8 files changed
+130
-7
No files matched your search
@@ -170,8 +170,9 @@ STGB_OFFENSES = {
|
||||
|
||||
|
||||
def parse_immunity_report(text: str) -> dict[str, Any]:
|
||||
authority = re.search(r"Ersuchen (?:der|des) (.+?),\s*(?:do\.|GZ|Zl)", text)
|
||||
case_ref = re.search(r"\bGZ\.?\s*([^,]+?),", text)
|
||||
# "Ersuchen der Staatsanwaltschaft Wien, do. GZ. 501 St 68/24k, um ..." or "... Wien (GZ 25 St 407/08i) um ..."
|
||||
authority = re.search(r"Ersuchen (?:der|des) ([^,()]{3,90}?)\s*(?:,|\(|\bum\b)", text)
|
||||
case_ref = re.search(r"\b(?:GZ|Zl)\.?:?\s*([^,()]{3,60}?)\s*[,)]", text)
|
||||
# "wegen des Verdachtes einer strafbaren Handlung nach § 283 Abs. 1 Z 1 und Z 2, Abs. 2 StGB"
|
||||
offense = re.search(r"wegen[^§]{0,90}?(§§? ?\d+.{0,120}?\b(?:StGB|VerbotsG|FinStrG|[A-Z][A-Za-z]*G)\b)", text)
|
||||
offense_text = offense.group(1).strip() if offense else None
|
||||
@@ -183,12 +184,16 @@ def parse_immunity_report(text: str) -> dict[str, Any]:
|
||||
recommendation = None
|
||||
if decision:
|
||||
recommendation = "refuse" if (decision.group(1) or decision.group(2)) else "consent"
|
||||
elif re.search(r"festgestellt, dass kein Zusammenhang", text):
|
||||
# Art. 57 Abs. 3 B-VG: without a connection to the political activity, immunity does not apply and the
|
||||
# authority may prosecute without the Nationalrat's consent.
|
||||
recommendation = "no_connection"
|
||||
connection = None
|
||||
if re.search(r"\bkein Zusammenhang\b", text):
|
||||
connection = False
|
||||
elif re.search(r"\bein Zusammenhang\b", text):
|
||||
connection = True
|
||||
quote = re.search(r"Als Ergebnis seiner Beratungen.*?(?:zugestimmt|nicht zugestimmt)\s*\.", text)
|
||||
quote = re.search(r"Als Ergebnis seiner Beratungen.*?(?:zugestimmt|kein Zusammenhang\b.{0,300}?\bbesteht)\s*\.", text)
|
||||
return {
|
||||
"authority": authority.group(1).strip() if authority else None,
|
||||
"case_ref": case_ref.group(1).strip() if case_ref else None,
|
||||
|
||||
@@ -56,7 +56,7 @@ class ParlamentItems(Adapter):
|
||||
name = "parlament.items"
|
||||
description = "Votes (faction + roll call), immunity requests, written questions, U-committee hearings"
|
||||
schedule = "45 3 * * *"
|
||||
parser_version = 2
|
||||
parser_version = 3 # 3: immunity reports finding no political connection, cleaner authority and case number
|
||||
|
||||
def start(self, ctx: RunContext) -> Iterator[Request]:
|
||||
for gp in ctx.params.get("periods") or get_settings().parlament_periods:
|
||||
@@ -232,12 +232,23 @@ class ParlamentItems(Adapter):
|
||||
name = re.sub(r"^.*?(Abgeordneten zum Nationalrat|Mitglied(es)? des Bundesrates)\s*(Klubobmann|Klubobfrau)?",
|
||||
"", title).strip()
|
||||
decided = str(meta.get("status")) == "5"
|
||||
recommendation = details["recommendation"] or ""
|
||||
stage = {"consent": "immunity_waived" if decided else "immunity_waiver_requested",
|
||||
"no_connection": "immunity_waived" if decided else "immunity_waiver_requested",
|
||||
"refuse": "immunity_refused" if decided else "immunity_waiver_requested"}.get(
|
||||
details["recommendation"] or "", "immunity_waiver_requested")
|
||||
recommendation, "immunity_waiver_requested")
|
||||
stage_de = {"immunity_waived": "Nationalrat stimmte der behördlichen Verfolgung zu (Immunität aufgehoben)",
|
||||
"immunity_refused": "Nationalrat verweigerte die Zustimmung zur behördlichen Verfolgung",
|
||||
"immunity_waiver_requested": "Ersuchen um Aufhebung der Immunität"}[stage]
|
||||
if recommendation == "no_connection":
|
||||
# Art. 57 Abs. 3 B-VG: no connection to the political activity -> no immunity, prosecution may proceed.
|
||||
stage_de = ("Nationalrat stellte fest: kein Zusammenhang mit der politischen Tätigkeit, behördliche "
|
||||
"Verfolgung zulässig" if decided else
|
||||
"Ersuchen um Zustimmung zur behördlichen Verfolgung (Ausschuss empfiehlt: kein Zusammenhang "
|
||||
"mit der politischen Tätigkeit, Verfolgung zulässig)")
|
||||
elif stage == "immunity_waiver_requested" and recommendation:
|
||||
stage_de += {"consent": " (Ausschuss empfiehlt Zustimmung)",
|
||||
"refuse": " (Ausschuss empfiehlt, nicht zuzustimmen)"}[recommendation]
|
||||
offense = details["offense"]
|
||||
requested = parse_date(meta.get("date"))
|
||||
yield Claim(
|
||||
|
||||
Reference in new issue
Block a user