From 250c54daac818f5b988a51bb8e7f57ec89dd36ab Mon Sep 17 00:00:00 2001 From: Jesse Mortenson Date: Wed, 22 Jan 2025 17:18:51 -0600 Subject: [PATCH] MT: handling vote counts, continued --- scrapers/mt/bills.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrapers/mt/bills.py b/scrapers/mt/bills.py index 09b5f763c0..b01b507764 100644 --- a/scrapers/mt/bills.py +++ b/scrapers/mt/bills.py @@ -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)