From b2c0f7e3c087272da7ad86c833c61d7ad91d8153 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Sat, 20 Jan 2018 21:46:31 +1030 Subject: [PATCH] Fix hash display bug on voter page --- eosweb/core/templates/election/voter/view.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eosweb/core/templates/election/voter/view.html b/eosweb/core/templates/election/voter/view.html index 423e711..dd4c690 100644 --- a/eosweb/core/templates/election/voter/view.html +++ b/eosweb/core/templates/election/voter/view.html @@ -60,7 +60,7 @@
- {{ eos.core.hashing.SHA256().update_obj(vote).hash_as_b64(True) }} + {{ eos.core.hashing.SHA256().update_obj(vote.ballot).hash_as_b64() }}
{% if session.user and session.user.is_admin() %}{{ eos.core.objects.EosObject.to_json(eos.core.objects.EosObject.serialise_and_wrap(vote)) }}{% else %}{{ eos.core.objects.EosObject.to_json(eos.core.objects.EosObject.serialise_and_wrap(vote, options=eos.core.objects.SerialiseOptions(should_protect=True))) }}{% endif %}