From 9c4314ffe7277977ceb53fe5aa82a35faacd7124 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 18 Jul 2016 15:11:28 +0200 Subject: [PATCH] uniform notation --- bigchaindb/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bigchaindb/core.py b/bigchaindb/core.py index 5cad533b..8fd33e2b 100644 --- a/bigchaindb/core.py +++ b/bigchaindb/core.py @@ -577,11 +577,11 @@ class Bigchain(object): # get the latest value for the vote timestamp (over all votes) max_timestamp = r.table('votes') \ .filter(r.row['node_pubkey'] == self.me) \ - .max(lambda x: x['vote']['timestamp']) \ + .max(r.row['vote']['timestamp']) \ .run(self.conn)['vote']['timestamp'] last_voted = list(r.table('votes') \ - .filter(lambda x: x['vote']['timestamp'] == max_timestamp) \ + .filter(r.row['vote']['timestamp'] == max_timestamp) \ .filter(r.row['node_pubkey'] == self.me) \ .run(self.conn))