From 79980ce991f226b23497c74d3f4495ef5740e929 Mon Sep 17 00:00:00 2001 From: xxm Date: Mon, 10 Aug 2026 14:29:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20candidate=5Ffilter=20pass=5Ffinal?= =?UTF-8?q?=E6=AD=BB=E8=A7=92=E2=80=94=E2=80=94=E4=BD=8E=E5=88=86=E5=80=99?= =?UTF-8?q?=E9=80=897=E5=A4=A9=E9=87=8D=E5=AE=A1=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/candidate_filter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy/profile-scripts/candidate_filter.py b/deploy/profile-scripts/candidate_filter.py index 6438ae17..fe8b981a 100644 --- a/deploy/profile-scripts/candidate_filter.py +++ b/deploy/profile-scripts/candidate_filter.py @@ -390,7 +390,10 @@ def main(): query += " AND code=?" params.append(single_code) else: - query += " AND (pass_final IS NULL OR pass_final=0)" + # 2026-08-10 修复pass_final死角:低分候选(score_final<7)7天后重置允许重审 + query += """ AND (pass_final IS NULL OR pass_final=0 + OR (pass_final=1 AND score_final < 7 + AND (created_at IS NULL OR created_at < datetime('now','localtime','-7 day'))))""" rows = conn.execute(query, params).fetchall() print(f"[FILTER] 待处理候选: {len(rows)}只", flush=True)