Ran into this issue when adding new legislator records for the 117th session:
We currently use a legislator's first and last name (as listed in unitedstates/legislators.current.yaml) to construct the path to their json data file. Sometimes the first or last name listed changes between data updates, causing the script to create new json records instead of updating existing ones. This leads to duplicate legislator records and multiple aclu_ids assigned to the same person.
This PR prevents duplicate records by cross-referencing legislators' bioguide IDs, which shouldn't change between data updates.
Ran into this issue when adding new legislator records for the 117th session:
This PR prevents duplicate records by cross-referencing legislators' bioguide IDs, which shouldn't change between data updates.