diff options
author | Morgan Collett <morgan.collett@gmail.com> | 2007-10-27 12:46:05 (GMT) |
---|---|---|
committer | Morgan Collett <morgan.collett@gmail.com> | 2007-10-27 12:46:05 (GMT) |
commit | 5e14450b0f736f067a7d0e7af580eadbedc92c7c (patch) | |
tree | 33ab79f42c39cc05ce831d3ba5826cae25a0912f /poll.py | |
parent | 5dab151889059bc7756beda28d993c5d951986ed (diff) |
Allow multiple votes per XO, per Shannon's request
Diffstat (limited to 'poll.py')
-rw-r--r-- | poll.py | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1279,11 +1279,13 @@ class Poll: if self.active: if self.vote_count < self.maxvoters: self._logger.debug('About to vote') - # if voter already voted, change their vote: - if votersha in self.votes: - self._logger.debug('%s already voted, decrementing their ' - 'old choice %d' % (votersha, self.votes[votersha])) - self.data[self.votes[votersha]] -= 1 + # XXX 27/10/07 Morgan: Allowing multiple votes per XO + # per Shannon's request. + ## if voter already voted, change their vote: + #if votersha in self.votes: + # self._logger.debug('%s already voted, decrementing their ' + # 'old choice %d' % (votersha, self.votes[votersha])) + # self.data[self.votes[votersha]] -= 1 self.votes[votersha] = choice self.data[choice] += 1 self._logger.debug( |