Skip to content

Commit

Permalink
CLI bugfix: wasn't appending the ballots to list
Browse files Browse the repository at this point in the history
  • Loading branch information
JaviMuller committed Sep 5, 2023
1 parent e1dcc73 commit 9a1fdf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Elections/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ O programa pode ser corrido desde a linha de comandos das seguintes formas:

O ficheiro de importação do csv e os logs também podem ser dados de forma interativa na interface de linha de comandos.

O ficheiro foi bundled com pyinstaller com o comando:

pyinstaller elections.py --onefile --name "Eleições Senado" --icon <path_to_icon>

## Dependências:

argparse
Expand Down
2 changes: 1 addition & 1 deletion Elections/src/clinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def get_ballots(self, election_type, candidates, initial=[]):
break
ballot = self.get_ballot(election_type, candidates, inserted_ids=[ballot.get_id() for ballot in ballots])
if ballot != None:
ballots.append()
ballots.append(ballot)
ballots.sort(key=lambda x: x.get_id())
print('Os boletins são:')
for ballot in ballots:
Expand Down

0 comments on commit 9a1fdf6

Please sign in to comment.