From 17ca336d7be8f21fc23a9a4ff50bda5abe9753f5 Mon Sep 17 00:00:00 2001 From: Anandashankar Anil Date: Wed, 3 Jan 2024 17:43:54 +0100 Subject: [PATCH] Remove one more hardcoded order year --- 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 7fdf1c5..f739f49 100644 --- a/daily_read/ngi_data.py +++ b/daily_read/ngi_data.py @@ -361,7 +361,7 @@ def get_entry(self, project_id): rows = self.statusdb_session.rows(close_date=close_date) for row in rows: if row.value["portal_id"] == project_id: - order_year = "2023" # TODO - get order year from data + order_year = row.value["order_year"] portal_id = row.value["portal_id"] relative_path = f"{self.dirname}/{order_year}/{portal_id}.json" self.data[portal_id] = ProjectDataRecord(relative_path, data=row.value)