fix(store): guard ingest_task against 百世 non-undelivered kinds
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user