Skip to content

Commit

Permalink
add area_type to MP election result data types
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Sep 10, 2024
1 parent 558fe46 commit bf07b8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hub/management/commands/import_mps_election_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def create_data_types(self):
last_elected, created = DataType.objects.update_or_create(
data_set=last_elected_ds,
name="mp_last_elected",
area_type=area_type,
defaults={"label": "Date MP last elected", "data_type": "date"},
)

Expand All @@ -151,6 +152,7 @@ def create_data_types(self):
first_elected, created = DataType.objects.update_or_create(
data_set=first_elected_ds,
name="mp_first_elected",
area_type=area_type,
defaults={"label": "Date MP first elected", "data_type": "date"},
)

Expand Down

0 comments on commit bf07b8e

Please sign in to comment.