Skip to content

Commit

Permalink
CA and SD
Browse files Browse the repository at this point in the history
  • Loading branch information
twentyforty committed Sep 1, 2024
1 parent 4e6aae6 commit 91a7489
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scrapers/ca/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,19 @@ def scrape_bill_type(
fsbill.add_title(title)

for author in version.authors:
chamber = None
if author.house:
house = author.house.lower()
if house[0] == 'a':
chamber = 'lower'
elif house[0] == 's':
chamber = 'upper'
fsbill.add_sponsorship(
author.name,
classification=SPONSOR_TYPES[author.contribution],
primary=author.primary_author_flg == "Y",
entity_type="person",
chamber=chamber,
)
# fsbill.sponsorships[-1]['extras'] = {'official_type': author.contribution}

Expand Down
1 change: 1 addition & 0 deletions scrapers/sd/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def scrape_bill(self, chamber, session, bill_id, title, url):
classification="primary",
primary=True,
entity_type=sponsor_type,
chamber=chamber,
)

for keyword in page["Keywords"]:
Expand Down

0 comments on commit 91a7489

Please sign in to comment.