mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 06:55:45 +00:00
removed print statements
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
parent
f3a3e13b3e
commit
e5c6282490
@ -35,9 +35,6 @@ def _group_transaction_by_ids(connection, txids: list):
|
||||
_txassets = connection.run(connection.space("assets").select(txid, index="txid_search"))
|
||||
_txmeta = connection.run(connection.space("meta_data").select(txid, index="id_search"))
|
||||
|
||||
print('TX ASSETS')
|
||||
print(_txassets)
|
||||
|
||||
_txinputs = sorted(_txinputs, key=itemgetter(6), reverse=False)
|
||||
_txoutputs = sorted(_txoutputs, key=itemgetter(8), reverse=False)
|
||||
result_map = {
|
||||
@ -160,10 +157,6 @@ def get_asset(connection, asset_id: str):
|
||||
_data = connection.run(
|
||||
connection.space("assets").select(asset_id, index="txid_search")
|
||||
)
|
||||
|
||||
print('GET ASSET')
|
||||
|
||||
print(_data)
|
||||
|
||||
return json.loads(_data[0][0]) if len(_data) > 0 else []
|
||||
|
||||
@ -175,9 +168,6 @@ def get_assets(connection, assets_ids: list) -> list:
|
||||
asset = get_asset(connection, _id)
|
||||
_returned_data.append(asset)
|
||||
|
||||
print('############# RETURNED DATA ##########')
|
||||
print(_returned_data)
|
||||
|
||||
return sorted(_returned_data, key=lambda k: k["id"], reverse=False)
|
||||
|
||||
|
||||
|
||||
@ -153,11 +153,8 @@ class TransactionCompose:
|
||||
return self.db_results["transaction"][0]
|
||||
|
||||
def _get_asset(self):
|
||||
print('_GET_ASSET')
|
||||
_asset = iter(self.db_results["asset"])
|
||||
print(_asset)
|
||||
_res_asset = next(iter(next(_asset, iter([]))), None)
|
||||
print(_res_asset)
|
||||
return json.loads(_res_asset)
|
||||
|
||||
def _get_metadata(self):
|
||||
|
||||
@ -45,9 +45,6 @@ class MetadataApi(Resource):
|
||||
args['table'] = 'meta_data'
|
||||
metadata = planet.text_search(**args)
|
||||
|
||||
print('########### METADATA API ############')
|
||||
print(metadata)
|
||||
|
||||
try:
|
||||
# This only works with MongoDB as the backend
|
||||
return list(metadata)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user