mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
make asset_id not optional in get_transactions_filtered
This commit is contained in:
parent
2ec23be05d
commit
f2034cddde
@ -417,12 +417,10 @@ class Bigchain(object):
|
|||||||
|
|
||||||
return owned
|
return owned
|
||||||
|
|
||||||
def get_transactions_filtered(self, asset_id=None, operation=None):
|
def get_transactions_filtered(self, asset_id, operation=None):
|
||||||
"""
|
"""
|
||||||
Get a list of transactions filtered on some criteria
|
Get a list of transactions filtered on some criteria
|
||||||
"""
|
"""
|
||||||
if not asset_id:
|
|
||||||
raise ValueError("Need asset_id")
|
|
||||||
txids = backend.query.get_txids_filtered(self.connection, asset_id,
|
txids = backend.query.get_txids_filtered(self.connection, asset_id,
|
||||||
operation)
|
operation)
|
||||||
for txid in txids:
|
for txid in txids:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user