Skip to content

Commit

Permalink
ND: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jessemortenson committed Jan 15, 2025
1 parent 4fd130d commit 9ede0b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scrapers/nd/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,14 @@ def process_page(self):
.text_content()
.strip()
)
modal_id = vote_modal.xpath('../..')[0].attrib["id"]
modal_id = vote_modal.xpath("../..")[0].attrib["id"]
dedupe_key = f"{modal_id}{motion_text}"
if dedupe_key in votes_seen_for_bill:
# at least one ND bill has duplicate votes
# so skip if we have seen this vote already
self.logger.warning(f"Skipped duplicate vote {modal_id} on {bill_id}")
self.logger.warning(
f"Skipped duplicate vote {modal_id} on {bill_id}"
)
continue
else:
votes_seen_for_bill.append(dedupe_key)
Expand Down

0 comments on commit 9ede0b5

Please sign in to comment.