mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Fix natural descending cursor sort argument
Signed-off-by: David Dashyan <mail@davie.li>
This commit is contained in:
parent
eed23c2885
commit
e5b27cb970
@ -131,7 +131,7 @@ def get_txids_filtered(conn, asset_id, operation=None, last_tx=None):
|
|||||||
cursor = conn.run(conn.collection('transactions').find(match))
|
cursor = conn.run(conn.collection('transactions').find(match))
|
||||||
|
|
||||||
if last_tx:
|
if last_tx:
|
||||||
cursor = cursor.sort({'$natural': DESCENDING}).limit(1)
|
cursor = cursor.sort([('$natural', DESCENDING)]).limit(1)
|
||||||
|
|
||||||
return (elem['id'] for elem in cursor)
|
return (elem['id'] for elem in cursor)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user