From 9a099f46e83078b43785871913073ae174518419 Mon Sep 17 00:00:00 2001 From: Miyamizu-MitsuhaSang <2510681107@qq.com> Date: Fri, 7 Nov 2025 17:24:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/search_dict/routes.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/api/search_dict/routes.py b/app/api/search_dict/routes.py index 80442c4..4b966a7 100644 --- a/app/api/search_dict/routes.py +++ b/app/api/search_dict/routes.py @@ -191,12 +191,6 @@ async def search_word_list(query_word: SearchRequest, user=Depends(get_current_u ) elif search_lang == "zh": word_contents = [] - if transable: - word_contents = await service.suggest_autocomplete( - query=query, - dict_lang="jp", - model=WordlistJp, - ) word_contents.extend( await service.search_definition_by_meaning( query=query_word.query, @@ -204,6 +198,12 @@ async def search_word_list(query_word: SearchRequest, user=Depends(get_current_u lang="zh", ) ) + if transable: + word_contents = await service.suggest_autocomplete( + query=query, + dict_lang="jp", + model=WordlistJp, + ) else: word_contents = await service.suggest_autocomplete( query=query,