mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
filter query
This commit is contained in:
parent
5c11fc57fa
commit
87d332479b
@ -573,6 +573,7 @@ class Bigchain(object):
|
|||||||
try:
|
try:
|
||||||
# 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) \
|
||||||
.concat_map(lambda x: [x['vote']['timestamp']]) \
|
.concat_map(lambda x: [x['vote']['timestamp']]) \
|
||||||
.max() \
|
.max() \
|
||||||
.run(self.conn)
|
.run(self.conn)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user