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
@@ -155,6 +155,11 @@ def _reparse(adapter: Adapter, ctx: RunContext, conn: Connection) -> None:
|
||||
loader = Loader(conn, ctx)
|
||||
started = conn.execute("SELECT now() AS t").fetchone()["t"]
|
||||
rows = archive.latest_stored(conn, adapter.name)
|
||||
# -p kinds=a,b reparses only responses of these request kinds (e.g. one parser of a large adapter). Claims
|
||||
# of the other kinds are not reproduced then, so the stale-claim sweep is skipped.
|
||||
kinds = {k for k in str(ctx.params.get("kinds", "")).split(",") if k}
|
||||
if kinds:
|
||||
rows = [r for r in rows if (r["request"] or {}).get("kind", "default") in kinds]
|
||||
ctx.log.info("reparsing %s archived responses", len(rows))
|
||||
# Parse list/index responses before detail responses: records referencing others (vote positions ->
|
||||
# vote events) are emitted by the parent's parse() in order, so the original order is preserved
|
||||
@@ -173,7 +178,7 @@ def _reparse(adapter: Adapter, ctx: RunContext, conn: Connection) -> None:
|
||||
tdm_reserved=row["tdm_reserved"], from_archive=True)
|
||||
ctx.stats["responses"] += 1
|
||||
_parse_and_load(adapter, ctx, conn, loader, resp) # follow-ups are archived separately
|
||||
if not ctx.stats.get("errors") and not ctx.stats.get("missing_blobs"):
|
||||
if not kinds and not ctx.stats.get("errors") and not ctx.stats.get("missing_blobs"):
|
||||
_sweep_stale_claims(adapter, ctx, conn, started)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user