Skip to content

Commit

Permalink
MT fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jessemortenson committed Dec 12, 2024
1 parent 29f8b64 commit 741dad1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions scrapers/mt/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,16 @@ def scrape_list_page(self, session, page_num: int):
if not is_draft:
self.scrape_versions(bill, row["billType"]["code"], row["billNumber"])
if row["draft"]["fiscalNote"]:
self.scrape_fiscal_note(bill, row["billType"]["code"], row["billNumber"])
self.scrape_fiscal_note(
bill, row["billType"]["code"], row["billNumber"]
)

if row["sponsorId"]:
for legislator in self.legislators:
if row["sponsorId"] == legislator["id"]:
sponsor_name = f"{legislator['first_name']} {legislator['last_name']}"
sponsor_name = (
f"{legislator['first_name']} {legislator['last_name']}"
)
bill.add_sponsorship(
sponsor_name,
classification="primary",
Expand Down Expand Up @@ -234,7 +238,6 @@ def scrape_subjects(self, bill: Bill, row: dict):
for subject in row["draft"]["subjects"]:
bill.add_subject(subject["subjectCode"]["description"])


def scrape_archive_list_page(self, session, page_num: int):
self.info(f"Scraping page {str(page_num)}")
params = {
Expand Down Expand Up @@ -279,10 +282,10 @@ def scrape_archive_list_page(self, session, page_num: int):
self.scrape_archive_subjects(bill, row)

if not is_draft:
self.scrape_versions(bill, row['billType'], row['billNumber'])
self.scrape_versions(bill, row["billType"], row["billNumber"])

if row["hasFiscalNote"]:
self.scrape_fiscal_note(bill, row['billType'], row['billNumber'])
self.scrape_fiscal_note(bill, row["billType"], row["billNumber"])

if row["coSponsor"]:
print(row["coSponsor"])
Expand Down

0 comments on commit 741dad1

Please sign in to comment.