From aa14f87bc618255e0b266682d2b2f9245ccb235e Mon Sep 17 00:00:00 2001 From: John Seekins Date: Tue, 29 Aug 2023 15:48:10 -0600 Subject: [PATCH] correct more paths Signed-off-by: John Seekins --- scrapers/gu/bills.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrapers/gu/bills.py b/scrapers/gu/bills.py index 926ddba0a7..2dddee940a 100644 --- a/scrapers/gu/bills.py +++ b/scrapers/gu/bills.py @@ -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"]) @@ -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 = (