You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by hu...@apache.org on 2016/02/05 12:30:12 UTC
svn commit: r1728641 - /steve/trunk/pysteve/www/cgi-bin/rest_admin.py
Author: humbedooh
Date: Fri Feb 5 11:30:12 2016
New Revision: 1728641
URL: http://svn.apache.org/viewvc?rev=1728641&view=rev
Log:
are we missing timestamp data here..?
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=1728641&r1=1728640&r2=1728641&view=diff
==============================================================================
--- steve/trunk/pysteve/www/cgi-bin/rest_admin.py (original)
+++ steve/trunk/pysteve/www/cgi-bin/rest_admin.py Fri Feb 5 11:30:12 2016
@@ -456,7 +456,10 @@ else:
votes = election.getVotesRaw(electionID, issue)
jvotes = {}
for vote in votes:
- jvotes[hashlib.sha224(vote['key']).hexdigest()] = vote['data']['vote'] # yeah, let's not show the actual UID here..
+ jvotes[hashlib.sha224(vote['key']).hexdigest()] = {
+ 'vote': vote['data']['vote'],
+ 'timestamp': vote['data']['timestamp']
+ } # yeah, let's not show the actual UID here..
if issuedata and votes:
if election.validType(issuedata['type']):
ehash, blergh = election.getHash(electionID)