Skip to content

Commit 7eb2aa4

Browse files
committed
Restructuring for library usage
1 parent 47257a3 commit 7eb2aa4

26 files changed

+15
-13
lines changed

performance_tests/test_schulze_pr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# You should have received a copy of the GNU General Public License
1414
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1515

16-
from schulze_pr import SchulzePR
16+
from pyvotecore.schulze_pr import SchulzePR
1717
import time
1818
import unittest
1919

performance_tests/test_schulze_stv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# You should have received a copy of the GNU General Public License
1414
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1515

16-
from schulze_stv import SchulzeSTV
16+
from pyvotecore.schulze_stv import SchulzeSTV
1717
import unittest, time
1818

1919
class TestSchulzeSTV(unittest.TestCase):
File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class VotingSystem(object):
2424
@abstractmethod
2525
def __init__(self, ballots, tie_breaker = None):
2626
self.ballots = ballots
27+
for ballot in self.ballots:
28+
if "count" not in ballot:
29+
ballot["count"] = 1
2730
self.tie_breaker = tie_breaker
2831
self.calculate_results()
2932

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)