mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 22:45:44 +00:00
simplified return of metadata
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
084d566fe8
commit
1d7f609d17
@ -112,8 +112,7 @@ def get_metadata(connection, transaction_ids: list):
|
||||
space = connection.space("meta_data")
|
||||
for _id in transaction_ids:
|
||||
metadata = space.select(_id, index="id_search")
|
||||
print(f"METADATA : {metadata}")
|
||||
_returned_data.append({"id": metadata.data[0][0], "metadata": metadata.data[0][1]})
|
||||
_returned_data.append(metadata)
|
||||
return _returned_data
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user