Skip to content

Commit

Permalink
Merge pull request #410 from fgregg/main
Browse files Browse the repository at this point in the history
ties are not wins
  • Loading branch information
peterrrock2 authored Oct 11, 2023
2 parents 4f3e2b8 + 92cbde8 commit 627e6c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gerrychain/updaters/election.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ def won(self, party, race):
Answers "Did ``party`` win the race in part ``race``?" with ``True`` or ``False``.
"""
return all(
self.totals_for_party[party][race] >= self.totals_for_party[opponent][race]
for opponent in self.election.parties
self.totals_for_party[party][race] > self.totals_for_party[opponent][race]
for opponent in self.election.parties if opponent != party
)

def total_votes(self):
Expand Down

0 comments on commit 627e6c6

Please sign in to comment.