bradbeattie / python-vote-core

Python libraries for various electoral methods
http://modernballots.com
Other
140 stars 36 forks source link

SchulzeNPR dies with just one option #17

Open diraol opened 11 years ago

diraol commented 11 years ago

If there is just one option that recieved votes, the method dies.

Here's an example:

a = SchulzeNPR([{"count":1, "ballot":[["A"]]},{"count":1, "ballot":[["A"]]}], ballot_notation='grouping').as_dict()