Skip to content

Commit

Permalink
PA: add comment explaining committee vote URL modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jessemortenson committed Nov 15, 2024
1 parent 42064c3 commit ef32cde
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions scrapers/pa/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,8 @@ def parse_votes(self, bill, page):
if "/roll-calls/" in url:
yield from self.parse_chamber_votes(bill, url)
elif "/roll-call-votes/" in url:
# TODO remove log message and uncomment self.parse_committee_votes()
# when committee vote URLs work again, for example:
# https://www.palegis.us/house/committees/roll-call-votes/vote-summary?committeecode=59&rollcallid=1
# self.logger.warning(
# "Temporarily disabling committee vote ingestion "
# "due to systemic 500 HTTP errors"
# )
# 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:
url = f"{url}&sessyr={self.session_year}"
yield from self.parse_committee_votes(bill, url)
Expand Down

0 comments on commit ef32cde

Please sign in to comment.