Compare commits

...

2 Commits

Author SHA1 Message Date
Peter J. Holzer b88b0724c7 Merge branch 'master' of git.hjp.at:hjp/meeat 2023-05-14 13:17:01 +02:00
Peter J. Holzer aa9e609446 Add option direction to definition of runoff
If we're going to call it with a second parameter we should also define
it to expect one ;-)
2023-05-14 13:15:58 +02:00
1 changed files with 1 additions and 1 deletions

2
app.py
View File

@ -438,7 +438,7 @@ def dump_ballots(ballots):
for r in ballot:
log.debug(r)
def runoff(ballots):
def runoff(ballots, direction):
count = {}
candidates = {}
for ballot in ballots: