Skip to content

Commit

Permalink
MI: Bills: Fix for chapter law regex (#4904)
Browse files Browse the repository at this point in the history
  • Loading branch information
showerst authored Apr 1, 2024
1 parent e3844c9 commit a69c285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapers/mi/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def scrape_actions(self, bill: Bill, page: lxml.html.HtmlElement):

# chapter law
if "assigned pa" in action.lower():
match = re.search(r"(\d{4})'(\d+)", action)
match = re.search(r"(\d+)'(\d+)", action)
act_num = match.group(1).lstrip("0")
act_year = f"20{match.group(2)}"
bill.add_citation(
Expand Down

0 comments on commit a69c285

Please sign in to comment.