From 71c2038a628f71ba5e23eaf1726ae29710a4fb99 Mon Sep 17 00:00:00 2001 From: Mohammed Taha Khan Date: Fri, 7 Aug 2026 16:24:04 +0200 Subject: [PATCH] fix(harvester): show more runs in reports dropdown --- site/cds_rdm/administration/harvester_reports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/cds_rdm/administration/harvester_reports.py b/site/cds_rdm/administration/harvester_reports.py index e56f40bb..71c32345 100644 --- a/site/cds_rdm/administration/harvester_reports.py +++ b/site/cds_rdm/administration/harvester_reports.py @@ -100,7 +100,7 @@ def _get_inspire_job_id(self): job = Job.query.filter_by(task="process_inspire").first() return job.id if job else None - def _fetch_recent_runs(self, job_id, limit=20): + def _fetch_recent_runs(self, job_id, limit=100): """Fetch recent parent runs for the INSPIRE job.""" # Fetch only parent runs (parent_run_id is None) that have started runs = ( @@ -131,7 +131,7 @@ def get_context(self, **kwargs): # Get INSPIRE job and its runs job_id = self._get_inspire_job_id() if job_id: - runs = self._fetch_recent_runs(job_id, limit=20) + runs = self._fetch_recent_runs(job_id) requested_run_id = request.args.get("run_id") default_run = next( (run for run in runs if run["id"] == requested_run_id),