mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
uniform notation
This commit is contained in:
parent
1f7cf3df2e
commit
9c4314ffe7
@ -577,11 +577,11 @@ class Bigchain(object):
|
|||||||
# get the latest value for the vote timestamp (over all votes)
|
# get the latest value for the vote timestamp (over all votes)
|
||||||
max_timestamp = r.table('votes') \
|
max_timestamp = r.table('votes') \
|
||||||
.filter(r.row['node_pubkey'] == self.me) \
|
.filter(r.row['node_pubkey'] == self.me) \
|
||||||
.max(lambda x: x['vote']['timestamp']) \
|
.max(r.row['vote']['timestamp']) \
|
||||||
.run(self.conn)['vote']['timestamp']
|
.run(self.conn)['vote']['timestamp']
|
||||||
|
|
||||||
last_voted = list(r.table('votes') \
|
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) \
|
.filter(r.row['node_pubkey'] == self.me) \
|
||||||
.run(self.conn))
|
.run(self.conn))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user