Skip to content

Commit

Permalink
USA: Bills: Fix congress.gov source links for joint bills (#4749)
Browse files Browse the repository at this point in the history
  • Loading branch information
showerst authored Dec 11, 2023
1 parent 25a621e commit e8bfcea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scrapers/usa/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ def parse_bill(self, url):
bill.add_source(xml_url)
# need to get Congress.gov URL for source & additional versions
# https://www.congress.gov/bill/116th-congress/house-bill/1
cg_url = f"https://congress.gov/bill/{session}th-congress/{chamber_name.lower()}-{classification.lower()}/{bill_num}"
if "J" in bill_type:
cg_url = f"https://congress.gov/bill/{session}th-congress/{chamber_name.lower()}-joint-{classification.lower()}/{bill_num}"
else:
cg_url = f"https://congress.gov/bill/{session}th-congress/{chamber_name.lower()}-{classification.lower()}/{bill_num}"
bill.add_source(cg_url)

# use cg_url to get additional version for public law
Expand Down

0 comments on commit e8bfcea

Please sign in to comment.