From bc553308e461a1430f1c8b5ec6e2ba7b3771546f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Eckel?= Date: Wed, 6 Apr 2022 10:01:49 +0200 Subject: [PATCH] adjusted to asset based txid_search 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planetmint/backend/tarantool/query.py b/planetmint/backend/tarantool/query.py index 18a4d11..51d7ce0 100644 --- a/planetmint/backend/tarantool/query.py +++ b/planetmint/backend/tarantool/query.py @@ -139,7 +139,7 @@ def store_assets(connection, assets: list): @register_query(TarantoolDB) def get_asset(connection, asset_id: str): space = connection.space("assets") - _data = space.select(asset_id, index="assetid_search") + _data = space.select(asset_id, index="txid_search") _data = _data.data return _data[0][1] if len(_data) == 1 else []