From 9b4be3941c2480c30dbca895bb0f6f06421b84f8 Mon Sep 17 00:00:00 2001 From: Anandashankar Anil Date: Fri, 22 Nov 2024 10:20:54 +0100 Subject: [PATCH] Review comment Co-authored-by: Johannes Alneberg --- daily_read/ngi_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daily_read/ngi_data.py b/daily_read/ngi_data.py index a0f12bf..20a6e49 100644 --- a/daily_read/ngi_data.py +++ b/daily_read/ngi_data.py @@ -359,7 +359,7 @@ def get_data(self, project_id=None, close_date=None): close_date = (datetime.datetime.now() - relativedelta(months=6)).strftime("%Y-%m-%d") for row in self.statusdb_session.rows(close_date=close_date): if "portal_id" not in row.value: - # Probably a project with no associated order(e.g ESCG), log it and skip + # Probably a project with no associated order(e.g legacy ESCG), log it and skip log.error(f"No portal_id found in row {row.id}, skipping it!") continue portal_id = row.value["portal_id"]