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/07 10:04:57 UTC

svn commit: r1728930 - /steve/trunk/pysteve/lib/backends/files.py

Author: humbedooh
Date: Sun Feb  7 09:04:57 2016
New Revision: 1728930

URL: http://svn.apache.org/viewvc?rev=1728930&view=rev
Log:
proper struct as with ES

Modified:
    steve/trunk/pysteve/lib/backends/files.py

Modified: steve/trunk/pysteve/lib/backends/files.py
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/lib/backends/files.py?rev=1728930&r1=1728929&r2=1728930&view=diff
==============================================================================
--- steve/trunk/pysteve/lib/backends/files.py (original)
+++ steve/trunk/pysteve/lib/backends/files.py Sun Feb  7 09:04:57 2016
@@ -175,9 +175,11 @@ class FileBasedBackend:
                 vote_history = json.loads(f.read())
                 f.close()
         vote_history.append({
-            'uid': uid,
-            'vote': vote,
-            'timestamp': now
+            'key': uid,
+            'data': {
+                'vote': vote,
+                'timestamp': now
+            }
         })
         with open(issuepath + ".history", "w") as f:
             f.write(json.dumps(vote_history))