From f11d8af9364707ccd3e56b41a8b42e5df95c7720 Mon Sep 17 00:00:00 2001 From: Yongteng Lei Date: Tue, 14 Oct 2025 09:30:46 +0800 Subject: [PATCH] Fix: wrong Knowledgebase tasks_finish_at (#10521) ### What problem does this PR solve? Wrong Knowledgebase tasks_finish_at. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/apps/kb_app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/apps/kb_app.py b/api/apps/kb_app.py index 141f1f5d4..a5a5a0263 100644 --- a/api/apps/kb_app.py +++ b/api/apps/kb_app.py @@ -188,6 +188,9 @@ def detail(): return get_data_error_result( message="Can't find this knowledgebase!") kb["size"] = DocumentService.get_total_size_by_kb_id(kb_id=kb["id"],keywords="", run_status=[], types=[]) + for key in ["graphrag_task_finish_at", "raptor_task_finish_at", "mindmap_task_finish_at"]: + if finish_at := kb.get(key): + kb[key] = finish_at.strftime("%Y-%m-%d %H:%M:%S") return get_json_result(data=kb) except Exception as e: return server_error_response(e)