From 04bcb506af21d696d67e12727534fab0530a2218 Mon Sep 17 00:00:00 2001 From: alexobaseki Date: Wed, 18 Dec 2024 11:05:38 -0500 Subject: [PATCH 1/2] Add Assemblymember as possible sponsor title --- scrapers/nv/bills.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapers/nv/bills.py b/scrapers/nv/bills.py index 724e9c2a2f..72cbe92bc0 100644 --- a/scrapers/nv/bills.py +++ b/scrapers/nv/bills.py @@ -216,7 +216,7 @@ 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: From 61c98997118e18294a477cbfe28d6a4ed16b6cb5 Mon Sep 17 00:00:00 2001 From: alexobaseki Date: Wed, 18 Dec 2024 11:46:00 -0500 Subject: [PATCH 2/2] lint fix --- scrapers/nv/bills.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scrapers/nv/bills.py b/scrapers/nv/bills.py index 72cbe92bc0..3e77033114 100644 --- a/scrapers/nv/bills.py +++ b/scrapers/nv/bills.py @@ -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", "Assemblymember", "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: