From e84228ac39d2fd3617322bd3b0664bc3c9058cf4 Mon Sep 17 00:00:00 2001 From: Jesse Mortenson Date: Wed, 22 Jan 2025 15:20:11 -0600 Subject: [PATCH] MT: fix vote count handling bug --- scrapers/mt/bills.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scrapers/mt/bills.py b/scrapers/mt/bills.py index 18701de4dd..09b5f763c0 100644 --- a/scrapers/mt/bills.py +++ b/scrapers/mt/bills.py @@ -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"]