fmt
Some checks failed
Deploy on push / deploy (push) Failing after 36s

This commit is contained in:
2025-08-23 10:47:52 +03:00
parent d33e53933f
commit b4f683a7cc
12 changed files with 406 additions and 810 deletions

View File

@@ -10,7 +10,7 @@ from orm.author import Author
from orm.reaction import Reaction, ReactionKind
from orm.shout import Shout, ShoutAuthor, ShoutTopic
from orm.topic import Topic
from services.search import SearchService, search_text
from services.search import search_service
from services.viewed import ViewedStorage
from storage.db import json_array_builder, json_builder, local_session
from storage.schema import query
@@ -491,8 +491,8 @@ async def load_shouts_search(
logger.info(f"[load_shouts_search] Starting search for '{text}' with limit={limit}, offset={offset}")
if isinstance(text, str) and len(text) > 2:
logger.debug(f"[load_shouts_search] Calling search_text service for '{text}'")
results = await search_text(text, limit, offset)
logger.debug(f"[load_shouts_search] Calling Muvera search service for '{text}'")
results = await search_service.search(text, limit, offset)
logger.debug(f"[load_shouts_search] Search service returned {len(results)} results for '{text}'")
@@ -624,7 +624,6 @@ async def load_shouts_random_top(_: None, info: GraphQLResolveInfo, options: dic
async def fetch_all_shouts(
session: Session,
search_service: SearchService,
limit: int = 100,
offset: int = 0,
search_query: str = "",