From c30774353c48a932ded8d704ee93c1e757778eb2 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Tue, 1 Apr 2025 14:28:32 -0300 Subject: [PATCH] debug(search.py): pagination 100 items --- services/search.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/services/search.py b/services/search.py index fd9ac6e0..1277154c 100644 --- a/services/search.py +++ b/services/search.py @@ -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):