Skip to content

Commit

Permalink
Merge pull request #5141 from alexobaseki/nv-sponsor-bill-matching-issue
Browse files Browse the repository at this point in the history
NV: Add Assemblymember as possible sponsor title
  • Loading branch information
alexobaseki authored Dec 18, 2024
2 parents 1040e2b + 61c9899 commit 79408cb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scrapers/nv/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,12 @@ def add_sponsors(self, bill, sponsor_links, primary):
entity_type = "person"
if "committee" in name.lower():
entity_type = "organization"
if name.split()[0] in ["Assemblywoman", "Assemblyman", "Senator"]:
if name.split()[0] in [
"Assemblywoman",
"Assemblyman",
"Assemblymember",
"Senator",
]:
chamber = "lower" if "Assembly" in name.split()[0] else "upper"
name = " ".join(name.split()[1:]).strip()
if name not in seen:
Expand Down

0 comments on commit 79408cb

Please sign in to comment.