Skip to content

Commit

Permalink
Remove one more hardcoded order year
Browse files Browse the repository at this point in the history
  • Loading branch information
aanil committed Jan 3, 2024
1 parent 6d9a0b2 commit 17ca336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daily_read/ngi_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 17ca336

Please sign in to comment.