Skip to content

Commit

Permalink
MT: handling vote counts, continued
Browse files Browse the repository at this point in the history
  • Loading branch information
jessemortenson committed Jan 22, 2025
1 parent 1a7e837 commit 250c54d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapers/mt/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,9 +543,9 @@ def scrape_votes_page(self, vote_url: str, bill: Bill):
voter = self.legislators_by_id[str(leg_id)]
vote_type_key = "voteType" if "voteType" in v else "committeeVote"

if v[vote_type_key] == "YES":
if "YES" in v[vote_type_key]:
vote.yes(voter)
elif v[vote_type_key] == "NO":
elif "NO" in v[vote_type_key]:
vote.no(voter)
elif v[vote_type_key] == "ABSENT":
vote.vote("absent", voter)
Expand Down

0 comments on commit 250c54d

Please sign in to comment.