From acf8e44aa5e0c7b6cf2f5c58e0c703305da6d535 Mon Sep 17 00:00:00 2001 From: thug0bin Date: Wed, 4 Mar 2026 10:25:53 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=83=81?= =?UTF-8?q?=ED=83=9C=20=ED=95=84=ED=84=B0=EC=99=80=20=ED=86=B5=EA=B3=84=20?= =?UTF-8?q?=EC=9D=BC=EA=B4=80=EC=84=B1=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - '실패' 필터 선택 시 failed + no_result 둘 다 검색되도록 수정 - 통계 라벨: '실패' → '실패/없음' - 필터 옵션: '실패' → '실패/검색없음', 별도 'no_result' 옵션 제거 - 상단 통계와 필터 결과가 일치하도록 UX 개선 --- backend/app.py | 8 ++++++-- backend/templates/admin_product_images.html | 5 ++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/backend/app.py b/backend/app.py index 6401a07..ea066c6 100644 --- a/backend/app.py +++ b/backend/app.py @@ -5707,8 +5707,12 @@ def api_product_images_list(): params = [] if status_filter: - where_clauses.append("status = ?") - params.append(status_filter) + # "failed" 필터는 failed + no_result 둘 다 포함 (통계와 일치시키기 위해) + if status_filter == 'failed': + where_clauses.append("status IN ('failed', 'no_result')") + else: + where_clauses.append("status = ?") + params.append(status_filter) if search: where_clauses.append("(product_name LIKE ? OR barcode LIKE ?)") diff --git a/backend/templates/admin_product_images.html b/backend/templates/admin_product_images.html index 7e79dc1..db7fd0e 100644 --- a/backend/templates/admin_product_images.html +++ b/backend/templates/admin_product_images.html @@ -371,7 +371,7 @@
-
-
실패
+
실패/없음
-
@@ -386,8 +386,7 @@