Skip to content

Commit

Permalink
ID: improve matching
Browse files Browse the repository at this point in the history
  • Loading branch information
alexobaseki committed Nov 15, 2024
1 parent ceeb77d commit 395ae8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scrapers/id/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,16 @@ def _split(string):
# sponsors range from a committee to one legislator to a group of legs
sponsor_lists = bill_tables[0].text_content().split("by")
if len(sponsor_lists) > 1:
# Adding chamber to further filter search results for committee
# This is based on the assumption that a House Bill can only be sponsored by a House Committee and so on
for sponsors in sponsor_lists[1:]:
if "COMMITTEE" in sponsors.upper():
bill.add_sponsorship(
name=sponsors.strip(),
entity_type="organization",
primary=True,
classification="primary",
chamber=chamber
)
else:
for person in _split(sponsors):
Expand Down

0 comments on commit 395ae8a

Please sign in to comment.