Skip to content

Commit

Permalink
PA: Events: Fix related bill names (#4761)
Browse files Browse the repository at this point in the history
  • Loading branch information
showerst authored Dec 20, 2023
1 parent 6af94eb commit 18472d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scrapers/pa/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ def scrape_chamber(self, chamber):
for bill in bills:
parsed = urllib.parse.urlparse(bill.get("href"))
qs = urllib.parse.parse_qs(parsed.query)
print(qs)
item.add_bill(
"{}{} {}".format(qs["body"], qs["type"], qs["bn"])
"{}{} {}".format(qs["body"][0], qs["type"][0], qs["bn"][0])
)
for committee in committees:
parsed = urllib.parse.urlparse(committee.get("href"))
Expand Down

0 comments on commit 18472d8

Please sign in to comment.