Author: humbedooh
Date: Mon Mar 30 20:57:55 2015
New Revision: 1670192
URL: http://svn.apache.org/r1670192
Log:
don't show the vote UID, doofus
Modified:
steve/trunk/pysteve/www/cgi-bin/rest_admin.py
Modified: steve/trunk/pysteve/www/cgi-bin/rest_admin.py
URL:
http://svn.apache.org/viewvc/steve/trunk/pysteve/www/cgi-bin/rest_admin.py?rev=1670192&r1=1670191&r2=1670192&view=diff
==============================================================================
--- steve/trunk/pysteve/www/cgi-bin/rest_admin.py (original)
+++ steve/trunk/pysteve/www/cgi-bin/rest_admin.py Mon Mar 30 20:57:55 2015
@@ -433,6 +433,8 @@ else:
if karma >= 2 or ('owner' in basedata and basedata['owner'] ==
whoami):
issuedata = election.getIssue(electionID, issue)
votes = election.getVotesRaw(electionID, issue)
+ for vote in votes:
+ vote['key'] = hashlib.sha224(vote['key']).hexdigest()
# yeah, let's not show the actual UID here..
if issuedata and votes:
if election.validType(issuedata['type']):
ehash, blergh = election.getHash(electionID)