Skip to content

Commit

Permalink
PR: fix truncated alphabetical part of bill identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
jessemortenson committed Jan 16, 2025
1 parent 682bb5f commit 5d214ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapers/pr/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def scrape_bill(self, chamber, session, url):
)
if len(page_header_elems) > 0:
page_header_text = page_header_elems[0].strip()
bill_id = re.findall(r"[A-Z]{2}\d{4}", page_header_text)[0]
bill_id = re.findall(r"[A-Z]{2,3}\d{4}", page_header_text)[0]
else:
self.logger.error(f"Bill found with no bill identifier at {url}")

Expand Down

0 comments on commit 5d214ab

Please sign in to comment.