Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
Don't double-count last vote when computing median
Browse files Browse the repository at this point in the history
  • Loading branch information
James Babcock committed Sep 19, 2012
1 parent 389867d commit c09863d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion r2/r2/models/poll.py
Expand Up @@ -219,7 +219,6 @@ def add_response(self, poll, response):
responsenum = float(response)
poll.sum += responsenum
responses = [float(ballot.response) for ballot in poll.get_ballots()]
responses.append(responsenum)
responses.sort()
poll.median = median(responses)

Expand Down

0 comments on commit c09863d

Please sign in to comment.