From 286a96d1aade40c1a6acb373b1f9fdd43f5ff4bd Mon Sep 17 00:00:00 2001 From: OG T Date: Mon, 6 Apr 2026 11:25:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(knowledge):=20entrystatus=20enum=20?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=AF=AB=E4=BF=AE=E6=AD=A3=20'archived'=20?= =?UTF-8?q?=E2=86=92=20'ARCHIVED'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- apps/api/src/services/knowledge_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/services/knowledge_service.py b/apps/api/src/services/knowledge_service.py index a07f11d0..c5e8de1a 100644 --- a/apps/api/src/services/knowledge_service.py +++ b/apps/api/src/services/knowledge_service.py @@ -253,7 +253,7 @@ class KnowledgeService: "WHERE entry_type = 'anti_pattern' " "AND symptoms_hash = :hash " "AND created_at >= :cutoff " - "AND status != 'archived' " + "AND status != 'ARCHIVED' " "ORDER BY created_at DESC LIMIT 5" ), {"hash": symptoms_hash, "cutoff": cutoff},