From 1093256de62ca3234faf5300f7b160b5b6ca6334 Mon Sep 17 00:00:00 2001 From: Misaka_Company Date: Fri, 24 Jul 2026 10:46:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(store):=20guard=20ingest=5Ftask=20against?= =?UTF-8?q?=20=E7=99=BE=E4=B8=96=20non-undelivered=20kinds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inbound_verify/store.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inbound_verify/store.py b/inbound_verify/store.py index f32ef24..3c73d66 100644 --- a/inbound_verify/store.py +++ b/inbound_verify/store.py @@ -399,6 +399,10 @@ def ingest_task(site, kind): """ if site == "__compare__": return 0 + # 百世无应到/实到(只有站点直供的未到);非 undelivered 直接返回 0,避免 + # _ingest_expected/_ingest_actual 走到 _site_cfg(百世)=None 而 TypeError。 + if site == "百世" and kind != "undelivered": + return 0 dates = _read_business_dates() total = 0 with _connect(_load_pg_config()["dbname"]) as conn: