Skip to content

Commit

Permalink
Merge pull request #5246 from openstates/mt-bills-bugfix-vote-counts-3
Browse files Browse the repository at this point in the history
MT: handling vote counts, continued
  • Loading branch information
jessemortenson authored Jan 22, 2025
2 parents 1a7e837 + 250c54d commit a012801
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 a012801

Please sign in to comment.