We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c246ddc commit 2907646Copy full SHA for 2907646
elex4/lib/models.py
@@ -4,9 +4,11 @@ class Candidate(object):
4
def __init__(self, raw_name, party):
5
self.last_name, self.first_name = [name.strip() for name in raw_name.split(",")]
6
self.party = self.__clean_party(party)
7
+ self.county_results = {}
8
self.votes = 0
9
10
def add_votes(self, county, votes):
11
+ self.county_results[county] = votes
12
self.votes += votes
13
14
# Private methods
0 commit comments