Skip to content

Commit

Permalink
add reform to party shade, fix party dataset shade updating
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Jul 5, 2024
1 parent f4e9afc commit fe4b75b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions hub/management/commands/base_importers.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"Sinn Féin": "#326760",
"Social Democratic and Labour Party": "#2AA82C",
"Reclaim": "#101122",
"Reform UK": "#3DBBE2",
"No overall control": "#EEE",
"Independents": "#DCDCDC",
}
Expand Down
5 changes: 3 additions & 2 deletions hub/management/commands/import_mps.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,13 @@ def import_mps(self):
data=mp["Party"],
)

dataset = DataSet.objects.filter(name="party", options=list())
dataset = DataSet.objects.filter(name="party")
if dataset:
parties = list()
all_parties = list(
PersonData.objects.filter(
data_type__data_set__name="party"
person__personarea__person_type="MP",
data_type__data_set__name="party",
).values_list("data")
)

Expand Down

0 comments on commit fe4b75b

Please sign in to comment.