From 2187536dfef8f100401754b0b1b4e94377210f6f Mon Sep 17 00:00:00 2001 From: Robin Kurosawa Date: Fri, 29 Nov 2024 19:47:02 -0500 Subject: [PATCH 1/2] catch param case sensitivity on PA vote parsing --- scrapers/pa/bills.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapers/pa/bills.py b/scrapers/pa/bills.py index 270b4b104e..ecd87aad33 100644 --- a/scrapers/pa/bills.py +++ b/scrapers/pa/bills.py @@ -277,7 +277,7 @@ def parse_votes(self, bill, page): elif "/roll-call-votes/" in url: # As of Nov 2024, this URL in the new site is broken # but works if we add a query param - if "sessyr" not in url: + if "sessyr" not in url.lower(): url = f"{url}&sessyr={self.session_year}" yield from self.parse_committee_votes(bill, url) else: From 3cb0d9d6df3fec0f03dea9ed32e1fea078389911 Mon Sep 17 00:00:00 2001 From: Robin Kurosawa Date: Fri, 29 Nov 2024 19:57:40 -0500 Subject: [PATCH 2/2] uppercase the addition --- scrapers/pa/bills.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapers/pa/bills.py b/scrapers/pa/bills.py index ecd87aad33..f332af7776 100644 --- a/scrapers/pa/bills.py +++ b/scrapers/pa/bills.py @@ -278,7 +278,7 @@ def parse_votes(self, bill, page): # As of Nov 2024, this URL in the new site is broken # but works if we add a query param if "sessyr" not in url.lower(): - url = f"{url}&sessyr={self.session_year}" + url = f"{url}&sessYr={self.session_year}" yield from self.parse_committee_votes(bill, url) else: msg = "Unexpected vote url: %r" % url