Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/poll.py
diff options
context:
space:
mode:
authorMorgan 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)
commit5e14450b0f736f067a7d0e7af580eadbedc92c7c (patch)
tree33ab79f42c39cc05ce831d3ba5826cae25a0912f /poll.py
parent5dab151889059bc7756beda28d993c5d951986ed (diff)
Allow multiple votes per XO, per Shannon's request
Diffstat (limited to 'poll.py')
-rw-r--r--poll.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/poll.py b/poll.py
index dda04e6..8cfb3f5 100644
--- a/poll.py
+++ b/poll.py
@@ -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(