simplified return of metadata

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2022-04-13 01:08:39 +02:00
parent 084d566fe8
commit 1d7f609d17

View File

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