mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-06-28 00:27:45 +02:00
Fixed typos
This commit is contained in:
parent
ce414e46f3
commit
cda8259e57
|
@ -229,7 +229,7 @@ def get_assets(connection, asset_ids):
|
||||||
"""Get a list of assets from the assets table.
|
"""Get a list of assets from the assets table.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
asset_ids (list): a of list of ids for the assets to be retrieved from
|
asset_ids (list): a list of ids for the assets to be retrieved from
|
||||||
the database.
|
the database.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
@ -293,7 +293,7 @@ def get_last_voted_block_id(connection, node_pubkey):
|
||||||
node_pubkey (str): base58 encoded public key.
|
node_pubkey (str): base58 encoded public key.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
The last block id the node has voted on. If the node didn't cast
|
The id of the last block the node has voted on. If the node didn't cast
|
||||||
any vote then the genesis block id is returned.
|
any vote then the genesis block id is returned.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -648,7 +648,7 @@ class Bigchain(object):
|
||||||
asset_ids (:obj:`list` of :obj:`str`): A list of asset_ids to
|
asset_ids (:obj:`list` of :obj:`str`): A list of asset_ids to
|
||||||
retrieve from the database.
|
retrieve from the database.
|
||||||
|
|
||||||
Returs:
|
Returns:
|
||||||
list: The list of assets returned from the database.
|
list: The list of assets returned from the database.
|
||||||
"""
|
"""
|
||||||
return backend.query.get_assets(self.connection, asset_ids)
|
return backend.query.get_assets(self.connection, asset_ids)
|
||||||
|
|
|
@ -106,7 +106,7 @@ class Transaction(Transaction):
|
||||||
if tx_dict['operation'] in [Transaction.CREATE, Transaction.GENESIS]:
|
if tx_dict['operation'] in [Transaction.CREATE, Transaction.GENESIS]:
|
||||||
# TODO: Maybe replace this call to a call to get_asset_by_id
|
# TODO: Maybe replace this call to a call to get_asset_by_id
|
||||||
asset = list(bigchain.get_assets([tx_dict['id']]))[0]
|
asset = list(bigchain.get_assets([tx_dict['id']]))[0]
|
||||||
asset.pop('id')
|
del asset['id']
|
||||||
tx_dict.update({'asset': asset})
|
tx_dict.update({'asset': asset})
|
||||||
|
|
||||||
return cls.from_dict(tx_dict)
|
return cls.from_dict(tx_dict)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user