Merge branch 'planetmint-tarantool' of github.com:LaurentDeMontBlanc/planetmint into planetmint-tarantool

This commit is contained in:
Lorenz Herzberger 2022-06-22 10:13:17 +02:00
commit 0094f491ed
No known key found for this signature in database
GPG Key ID: FA5EE906EB55316A

View File

@ -148,6 +148,7 @@ def store_asset(connection, asset):
pass pass
@register_query(TarantoolDBConnection) @register_query(TarantoolDBConnection)
def store_assets(connection, assets: list): def store_assets(connection, assets: list):
for asset in assets: 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] return to_return if limit == 0 else to_return[:limit]
def _remove_text_score(asset): def _remove_text_score(asset):
asset.pop('score', None) asset.pop('score', None)
return asset return asset