This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/steve.git
The following commit(s) were added to refs/heads/trunk by this push:
new c7c9a4a fix the last bad digest calls
c7c9a4a is described below
commit c7c9a4af298fe7567bf48b9c7fa909a1b8651b1c
Author: Daniel Gruno <[email protected]>
AuthorDate: Sun Jan 26 20:46:12 2025 +0100
fix the last bad digest calls
this fixes monitoring for py3
---
pysteve/www/cgi-bin/rest_admin.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pysteve/www/cgi-bin/rest_admin.py
b/pysteve/www/cgi-bin/rest_admin.py
index ea5327b..a260d5d 100755
--- a/pysteve/www/cgi-bin/rest_admin.py
+++ b/pysteve/www/cgi-bin/rest_admin.py
@@ -465,7 +465,7 @@ else:
votes = election.getVotesRaw(electionID, issue)
jvotes = {}
for vote in votes:
- jvotes[hashlib.sha224(vote['key']).hexdigest()] = {
+ jvotes[constants.hexdigest(vote['key'])] = {
'vote': vote['data']['vote'],
'timestamp': vote['data']['timestamp']
} # yeah, let's not show the actual UID here..
@@ -500,7 +500,7 @@ else:
jvotes.append({
'vote': vote['data']['vote'],
'timestamp': vote['data']['timestamp'],
- 'uid': hashlib.sha224(vote['key']).hexdigest()
+ 'uid': constants.hexdigest(vote['key'])
})
if issuedata and votes:
if election.validType(issuedata['type']):