Skip to content

Commit

Permalink
MT: fix vote count handling bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jessemortenson committed Jan 22, 2025
1 parent e89aeb0 commit e84228a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scrapers/mt/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,8 @@ def scrape_votes_page(self, vote_url: str, bill: Bill):
counts["YES"] += 1
elif v[vote_type_key] == "NO_EXCUSED":
counts["NO"] += 1
counts[v[vote_type_key]] += 1
else:
counts[v[vote_type_key]] += 1

passed = counts["YES"] > counts["NO"]

Expand Down

0 comments on commit e84228a

Please sign in to comment.