Skip to content

Commit

Permalink
correct more paths
Browse files Browse the repository at this point in the history
Signed-off-by: John Seekins <[email protected]>
  • Loading branch information
John Seekins committed Aug 29, 2023
1 parent fde8ea2 commit aa14f87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapers/gu/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _process_bill(self, session: str, bill: str, root_url: str):
bill_obj.add_source(root_url, note="Bill Index")
# withdrawn bills don't have regular links, so we dig elsewhere
if "WITHDRAWN" in "".join(name_parts):
bill_obj.add_source(bill_link, note="Bill Introduced")
bill_obj.add_source(url=bill_link, note="Bill Introduced")
details = self._get_bill_details(bill_link)
if details["IntroducedDate"]:
bill_obj.add_action("Introduced", details["IntroducedDate"])
Expand All @@ -123,7 +123,7 @@ def _process_bill(self, session: str, bill: str, root_url: str):

yield bill_obj
else:
bill_obj.add_document_link(bill_link, note="Bill Introduced")
bill_obj.add_document_link(url=bill_link, note="Bill Introduced")
status = xml.xpath("//li")[0].xpath("a/@href")[0]
bill_obj.add_source(url=status, note="Bill Status")
description = (
Expand Down

0 comments on commit aa14f87

Please sign in to comment.