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), }