Skip to content

Commit

Permalink
tweaking accept-ballot printing info
Browse files Browse the repository at this point in the history
  • Loading branch information
windoverwater committed Apr 17, 2024
1 parent afc1a0c commit 5313412
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/vtp/ops/accept_ballot_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,11 +483,12 @@ def main_handle_receipt(
receipt_branch,
versioned=True,
)
self.imprimir(
f"#### Committing csv receipt (branch={receipt_branch}): {receipt_file}"
)
# Commit the voter's ballot voucher
receipt_digest = self.contest_add_and_commit(receipt_branch, "receipt")
self.imprimir(
f"#### Versioned csv receipt (branch={receipt_branch}, "
f"digest={receipt_digest}): {receipt_file}"
)
# Push the voucher
self.shell_out(
["git", "push", "origin", receipt_branch],
Expand Down Expand Up @@ -687,10 +688,14 @@ def run(
# For now, print the (untracked) cvs receipt location and the voter's index
if not receipt_file_csv:
receipt_file_csv = None
self.imprimir(f"#### Created (untracked) csv file: {receipt_file_csv}", 0)
self.imprimir("#### Did not create an (untracked) csv file", 0)
else:
self.imprimir(f"#### Created (untracked) csv file: {receipt_file_csv}", 0)
if index == 0:
index = None
self.imprimir(f"#### Voter's row: {index}", 0)
self.imprimir("#### No Voter row generated", 0)
else:
self.imprimir(f"#### Voter's row: {index}", 0)
# And return them. Note that ballot_check is in csv format
# when writing to a file. However, when returning is it more
# convenient for it to be normal 2-D array -
Expand Down

0 comments on commit 5313412

Please sign in to comment.