From a1089067a6314cf645967cce94560505f5e922dd Mon Sep 17 00:00:00 2001 From: Miyamizu-MitsuhaSang <2510681107@qq.com> Date: Sat, 8 Nov 2025 21:28:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E9=80=BB=E8=BE=91=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/search_dict/routes.py | 2 +- app/api/util_api/routes.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/api/search_dict/routes.py b/app/api/search_dict/routes.py index f26ed28..fc5a975 100644 --- a/app/api/search_dict/routes.py +++ b/app/api/search_dict/routes.py @@ -230,7 +230,7 @@ async def search_proverb_list(query_word: ProverbSearchRequest, user=Depends(get @dict_search.post("/search/proverb") async def search_proverb(proverb_id: int = Form(...), user=Depends(get_current_user)): result = await service.accurate_idiom_proverb(search_id=proverb_id, model=ProverbFr, - only_fields=["text", "chi_exp"]) + only_fields=["id", "text", "chi_exp"]) return {"result": result} diff --git a/app/api/util_api/routes.py b/app/api/util_api/routes.py index c7a6b09..96141d5 100644 --- a/app/api/util_api/routes.py +++ b/app/api/util_api/routes.py @@ -14,7 +14,6 @@ async def get_search_time(request: Request): if not count: await redis.set(key, value=0) count = 0 - print(count, type(count)) return { "count": int(count), }