Merge branch 'planetmint-tarantool' into planetmint-tarantool

This commit is contained in:
Lorenz Herzberger 2022-06-21 17:16:25 +02:00 committed by GitHub
commit d948f6fd5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,6 +148,7 @@ def store_asset(connection, asset):
pass
@register_query(TarantoolDBConnection)
def store_assets(connection, assets: list):
for asset in assets:
@ -285,6 +286,7 @@ def text_search(conn, search, table='assets', limit=0):
return to_return if limit == 0 else to_return[:limit]
def _remove_text_score(asset):
asset.pop('score', None)
return asset