debug(search.py): pagination 100 items
All checks were successful
Deploy on push / deploy (push) Successful in 53s

This commit is contained in:
Stepan Vladovskiy 2025-04-01 14:28:32 -03:00
parent a394aea521
commit c30774353c

View File

@ -536,13 +536,16 @@ async def search_text_paginated(text: str, return_limit: int = 20, offset: int =
full_limit: Maximum results to fetch and cache
Returns:
tuple: (results_for_page, total_results_count)
list: Results for the current page
"""
results = []
total = 0
if search_service.available:
results, total = await search_service.search_with_cache(text, full_limit, return_limit, offset)
return results, total
# Return just the results list instead of the tuple
# This is what GraphQL expects for the load_shouts_search field
return results
async def initialize_search_index(shouts_data):