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 ;-)
This commit is contained in:
Peter J. Holzer 2023-05-14 13:15:58 +02:00 committed by Peter J. Holzer
parent 34f361a4a6
commit aa9e609446
1 changed files with 1 additions and 1 deletions

2
app.py
View File

@ -437,7 +437,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: