mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 14:35:45 +00:00
Merge branch 'planetmint-tarantool' of github.com:LaurentDeMontBlanc/planetmint into planetmint-tarantool
This commit is contained in:
commit
0094f491ed
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user