From 63c9ca184bbeddea417421063462e4a084095f53 Mon Sep 17 00:00:00 2001 From: Chaim Date: Thu, 9 Apr 2026 15:36:16 +0000 Subject: [PATCH] Fix processing badge: treat 'proofread' status as completed Documents with extraction_status='proofread' were incorrectly shown as "in processing" on the case list page. Co-Authored-By: Claude Opus 4.6 (1M context) --- web/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app.py b/web/app.py index f037cdd..76d15a6 100644 --- a/web/app.py +++ b/web/app.py @@ -208,7 +208,7 @@ async def list_cases(detail: bool = False): "SELECT count(*) FROM documents WHERE case_id = $1", case_id ) processing_count = await conn.fetchval( - "SELECT count(*) FROM documents WHERE case_id = $1 AND extraction_status != 'completed'", + "SELECT count(*) FROM documents WHERE case_id = $1 AND extraction_status NOT IN ('completed', 'proofread')", case_id, ) result.append({