mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-06-23 17:56:41 +02: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
|
||||
|
||||
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
|
||||
"""
|
||||
if not asset_id:
|
||||
raise ValueError("Need asset_id")
|
||||
txids = backend.query.get_txids_filtered(self.connection, asset_id,
|
||||
operation)
|
||||
for txid in txids:
|
||||
|
|
Loading…
Reference in New Issue
Block a user