Skip to content

Commit

Permalink
Add temporary fix to MP import script, for February byelection MPs
Browse files Browse the repository at this point in the history
  • Loading branch information
zarino committed Feb 16, 2024
1 parent 241236f commit 14e2568
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hub/management/commands/import_mps.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ def get_parliament_ids_df(self):
id_df = id_df.drop(columns=["scheme"])
id_df = id_df.rename(columns={"identifier": "parlid"})

# TODO: Remove this temporary workaround, once February 2024 byelection MPs are added upstream.
patch_df = pd.DataFrame([{"twfyid": 26287, "parlid": "5010"}, {"twfyid": 26288, "parlid": "5011"}])
id_df = pd.concat([id_df, patch_df])

return id_df

def get_area_map(self):
Expand Down

0 comments on commit 14e2568

Please sign in to comment.