From 87d332479b58d8852fe5c155b0e19c0359abdb96 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 18 Jul 2016 10:35:54 +0200 Subject: [PATCH] filter query --- bigchaindb/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bigchaindb/core.py b/bigchaindb/core.py index eabe7947..07970693 100644 --- a/bigchaindb/core.py +++ b/bigchaindb/core.py @@ -573,6 +573,7 @@ class Bigchain(object): try: # get the latest value for the vote timestamp (over all votes) max_timestamp = r.table('votes') \ + .filter(r.row['node_pubkey'] == self.me) \ .concat_map(lambda x: [x['vote']['timestamp']]) \ .max() \ .run(self.conn)