From d2039a9dc3bc3d7921dc90028997277944e86a6e Mon Sep 17 00:00:00 2001 From: Simon Diesenreiter Date: Fri, 20 Nov 2026 00:58:10 +0100 Subject: [PATCH] speeches: always parse protocol responses, the wanted anchors grow over time The reparse after the XXIV-XXVII fix left 12.7k speeches without text: their protocol had been fetched earlier for other anchors, and an unchanged body was never parsed again. Co-Authored-By: Claude Opus 5.5 --- backend/politrack/sources/parlament/speeches.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/politrack/sources/parlament/speeches.py b/backend/politrack/sources/parlament/speeches.py index 2d58a61..638bc11 100644 --- a/backend/politrack/sources/parlament/speeches.py +++ b/backend/politrack/sources/parlament/speeches.py @@ -105,7 +105,9 @@ class SpeechTexts(Adapter): by_file[file].append(anchor) ctx.stats["protocols_pending"] = len(by_file) for file, anchors in list(by_file.items())[:limit]: - yield Request(url=file, kind="protocol", meta={"anchors": sorted(set(anchors))}) + # always parse: the anchors wanted from a file grow over time, and the archive keeps the first set only + yield Request(url=file, kind="protocol", meta={"anchors": sorted(set(anchors))}, + conditional=False, skip_unchanged=False) def parse(self, ctx: RunContext, response: Response) -> Iterator[Any]: anchors = response.meta["anchors"]