Skip to content

Commit

Permalink
testing with a more real upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
windoverwater committed Apr 20, 2024
1 parent 7b6e71a commit f3b8801
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/vtp/core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ class Globals:
# The election date-time for all ElectionData commits
"ELECTION_DATETIME": "2024-11-05T12:00:00",
# The arbitrary election data string
# "ELECTION_UPSTREAM_REMOTE": "https://github.com/TrustTheVote-Project/"
# + "VTP-mock-election.US.16",
"ELECTION_UPSTREAM_REMOTE": "http://127.0.0.1:8000/static",
"ELECTION_UPSTREAM_REMOTE": "https://github.com/TrustTheVote-Project/",
}

@staticmethod
Expand Down
17 changes: 11 additions & 6 deletions src/vtp/ops/verify_ballot_receipt_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,19 @@ def vet_a_row():
if found is False:
unmerged_uids[uid] = u_count
if unmerged_uids:
truly_unmerged_uids = {}
for uid in unmerged_uids:
if uid not in error_digests:
truly_unmerged_uids[uid] = unmerged_uids[uid]
truly_unmerged_uids = {
uid: dig
for uid, dig in unmerged_uids.items()
if uid not in error_digests
}
if truly_unmerged_uids:
self.imprimir("The following contests are not merged to main yet:", 0)
self.imprimir(
"The following contests are not merged to main yet:", 0
)
for uid, offset in truly_unmerged_uids.items():
self.imprimir(f"{headers[offset]} ({requested_digests[offset]})", 0)
self.imprimir(
f"{headers[offset]} ({requested_digests[offset]})", 0
)

# If a row is specified, will print the context index in the
# actual contest tally - which basically tells the voter 'your
Expand Down

0 comments on commit f3b8801

Please sign in to comment.