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 2015/04/02 15:23:37 UTC
svn commit: r1670904 - /steve/trunk/pysteve/lib/backends/es.py
Author: humbedooh
Date: Thu Apr 2 13:23:36 2015
New Revision: 1670904
URL: http://svn.apache.org/r1670904
Log:
raw means raw, stoopid
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=1670904&r1=1670903&r2=1670904&view=diff
==============================================================================
--- steve/trunk/pysteve/lib/backends/es.py (original)
+++ steve/trunk/pysteve/lib/backends/es.py Thu Apr 2 13:23:36 2015
@@ -107,9 +107,9 @@ class ElasticSearchBackend:
res = self.es.search(index="steve", doc_type="votes", q = "election:%s AND issue:%s" % (electionID, issueID), size = 9999999)
results = len(res['hits']['hits'])
if results > 0:
- votes = {}
+ votes = []
for entry in res['hits']['hits']:
- votes[entry['_source']['key']] = entry['_source']['data']
+ votes.append(entry['_source'])
return votes
return {}