Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
edulix committed Mar 4, 2024
1 parent 5e85068 commit 96e5e84
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,18 +242,19 @@ def verify_votes_pok(pubkeys, dir_path, questions_json, search_hash):
if is_invalid:
continue

choice_num = 0
for f in outvotes_files:
f.write(
json.dumps(
vote['choices'][choice_num],
ensure_ascii=False,
sort_keys=True,
separators=(",", ":")
if not search_hash:
choice_num = 0
for f in outvotes_files:
f.write(
json.dumps(
vote['choices'][choice_num],
ensure_ascii=False,
sort_keys=True,
separators=(",", ":")
)
)
)
f.write("\n")
choice_num += 1
f.write("\n")
choice_num += 1

for f in outvotes_files:
f.close()
Expand Down

0 comments on commit 96e5e84

Please sign in to comment.