From 395ae8afba255f54eed7f6bf024cbbb11176167e Mon Sep 17 00:00:00 2001 From: alexobaseki Date: Fri, 15 Nov 2024 14:32:17 -0500 Subject: [PATCH] ID: improve matching --- scrapers/id/bills.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scrapers/id/bills.py b/scrapers/id/bills.py index 11dd7250dd..726a4673d2 100644 --- a/scrapers/id/bills.py +++ b/scrapers/id/bills.py @@ -169,6 +169,8 @@ 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( @@ -176,6 +178,7 @@ def _split(string): entity_type="organization", primary=True, classification="primary", + chamber=chamber ) else: for person in _split(sponsors):