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/03/27 20:03:53 UTC
svn commit: r1736797 - /steve/trunk/pysteve/lib/backends/es.py
Author: humbedooh
Date: Sun Mar 27 18:03:53 2016
New Revision: 1736797
URL: http://svn.apache.org/viewvc?rev=1736797&view=rev
Log:
return True if we found the ballot (and any votes cast), so voter.py knows it's okay to regen
Modified:
steve/trunk/pysteve/lib/backends/es.py
Modified: steve/trunk/pysteve/lib/backends/es.py
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/lib/backends/es.py?rev=1736797&r1=1736796&r2=1736797&view=diff
==============================================================================
--- steve/trunk/pysteve/lib/backends/es.py (original)
+++ steve/trunk/pysteve/lib/backends/es.py Sun Mar 27 18:03:53 2016
@@ -256,7 +256,8 @@ class ElasticSearchBackend:
if results > 0:
for entry in res['hits']['hits']:
self.es.delete(index="steve", doc_type="votes", id=entry['_id']);
-
+ return True
+
def voter_remove(self,election, UID):
"Remove the voter with the given UID"
votehash = hashlib.sha224(election + ":" + UID).hexdigest()