mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 15:05:49 +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")
|
space = connection.space("meta_data")
|
||||||
for _id in transaction_ids:
|
for _id in transaction_ids:
|
||||||
metadata = space.select(_id, index="id_search")
|
metadata = space.select(_id, index="id_search")
|
||||||
print(f"METADATA : {metadata}")
|
_returned_data.append(metadata)
|
||||||
_returned_data.append({"id": metadata.data[0][0], "metadata": metadata.data[0][1]})
|
|
||||||
return _returned_data
|
return _returned_data
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user