Skip to content

Commit

Permalink
fixup! IMPORT: 2023 constituency data
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Nov 13, 2023
1 parent da9d7e9 commit 863476e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hub/management/commands/import_new_constituencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ def handle(self, quiet: bool = False, *args, **options):
cons = json.load(f)

area_type, created = AreaType.objects.get_or_create(
name="2023 Parliamentary Constituency",
code="WMC23",
area_type="Westminster Constituency",
description="Westminster Parliamentary Constituency boundaries, as created in 2023",
defaults={
"name": "Constituencies at the next election",
"area_type": "Westminster Constituency",
"description": "Westminster Parliamentary Constituency boundaries, as created by the 2023 Boundary Commission review",
},
)

for con in tqdm(cons["features"], disable=quiet):
Expand Down

0 comments on commit 863476e

Please sign in to comment.