1
0
mirror of https://github.com/bigchaindb/bigchaindb.git synced 2024-06-28 08:37:45 +02:00

make asset_id not optional in get_transactions_filtered

This commit is contained in:
Scott Sadler 2017-01-20 10:08:30 +01:00
parent 2ec23be05d
commit f2034cddde

View File

@ -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: