From 1d7f609d17c1db23dedd04c1bf6d0e1bfd7f617d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Eckel?= Date: Wed, 13 Apr 2022 01:08:39 +0200 Subject: [PATCH] simplified return of metadata MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Eckel --- planetmint/backend/tarantool/query.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/planetmint/backend/tarantool/query.py b/planetmint/backend/tarantool/query.py index e2219a6..1131f00 100644 --- a/planetmint/backend/tarantool/query.py +++ b/planetmint/backend/tarantool/query.py @@ -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