From 8333dd7c2d1a7a16c90461fee0aad5406f636478 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Sat, 16 Oct 2021 22:12:22 +1100 Subject: [PATCH] Fix BLT export format --- eos/base/util/blt.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eos/base/util/blt.py b/eos/base/util/blt.py index adbf9ca..8fff535 100644 --- a/eos/base/util/blt.py +++ b/eos/base/util/blt.py @@ -1,6 +1,6 @@ # Eos - Verifiable elections # pyRCV - Preferential voting counting -# Copyright © 2016–2017 RunasSudo (Yingtong Li) +# Copyright © 2016-2021 RunasSudo (Yingtong Li) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by @@ -41,10 +41,10 @@ def writeBLT(election, q_num, seats, withdrawn=[]): for candidate in flat_choices: if candidate.party: - electionLines.append("'{} – {}'".format(candidate.name, candidate.party)) + electionLines.append('"{} – {}"'.format(candidate.name, candidate.party)) else: - electionLines.append("'{}'".format(candidate.name)) + electionLines.append('"{}"'.format(candidate.name)) - electionLines.append("'{} – {}'".format(election.name, question.prompt)) + electionLines.append('"{} – {}"'.format(election.name, question.prompt)) return electionLines