debug-search-results
All checks were successful
Deploy to core / deploy (push) Successful in 1m45s

This commit is contained in:
Untone 2024-01-29 10:37:21 +03:00
parent ae9e025959
commit e6366d15f6

View File

@ -312,7 +312,9 @@ async def load_shouts_feed(_, info, options):
@query.field('load_shouts_search')
async def load_shouts_search(_, _info, text, limit=50, offset=0):
if isinstance(text, str) and len(text) > 2:
return await search_text(text, limit, offset)
results = await search_text(text, limit, offset)
logger.debug(results)
return results
return []