Skip to content

Commit

Permalink
Update import_schools_ni.py
Browse files Browse the repository at this point in the history
Switch to GB-IRN prefix
  • Loading branch information
drkane authored Feb 6, 2024
1 parent bb911c9 commit b23a835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ftc/management/commands/import_schools_ni.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Command(HTMLScraper):
allowed_domains = ["education-ni.gov.uk"]
start_urls = ["http://apps.education-ni.gov.uk/appinstitutes/default.aspx"]
skip_rows = 5
org_id_prefix = "GB-NIEDU"
org_id_prefix = "GB-IRN"
id_field = "Institution Reference Number"
date_fields = ["Date Closed"]
source = {
Expand Down Expand Up @@ -160,7 +160,7 @@ def parse_row(self, record):
"dateRemoved": record.get("Date Closed"),
"active": record.get("Status") == "Open",
"parent": None,
"orgIDs": [self.get_org_id(record)],
"orgIDs": [self.get_org_id(record), f"GB-NIEDU-{record[self.id_field]}"],
"scrape": self.scrape,
"source": self.source,
"spider": self.name,
Expand Down

0 comments on commit b23a835

Please sign in to comment.