From 3da3eb56f22c63b4e65b26a92b079030e63bdc88 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Thu, 17 Oct 2024 15:55:04 +0200 Subject: [PATCH] Limit test info retrival to 3 months, as the artifact expires after 3 months now --- scripts/generate_landings_risk_report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/generate_landings_risk_report.py b/scripts/generate_landings_risk_report.py index 85b5b2c6..ebb16499 100644 --- a/scripts/generate_landings_risk_report.py +++ b/scripts/generate_landings_risk_report.py @@ -380,7 +380,8 @@ class LandingsRiskReportGenerator(object): db.download(TEST_INFOS_DB) dates = [ - datetime.utcnow() - timedelta(days=day) for day in reversed(range(days)) + datetime.utcnow() - timedelta(days=day) + for day in reversed(range(min(days, 90))) ] logger.info("Get previously gathered test info...")