fix: harden news analysis and deploy verified image tags
Development CI / check-and-build (push) Successful in 2m4s
GitHub Git mirror / mirror (push) Successful in 6s
Development CI / deploy-development (push) Successful in 2m30s

This commit is contained in:
eezd committed 2026-11-02 15:37:42 +08:00
1 parent 3b7aec0024
commit adb73f956b
27 files changed
+840 -147

No files matched your search

-2
View File
@@ -91,8 +91,6 @@ def normalize(body: dict, kind: str, day: date) -> list[Entry]:
else:
timestamp = text(raw, "pub_time" if kind == "data" else "event_time")
at = datetime.strptime(timestamp, "%Y-%m-%d %H:%M").replace(tzinfo=LOCAL)
if at.date() != day:
raise ValueError("金十记录公布日期与请求不符")
unix = raw.get("pub_time_unix" if kind == "data" else "event_time_unix")
if type(unix) is not int or not int(at.timestamp()) <= unix < int(at.timestamp()) + 60:
raise ValueError("金十公布时间与时间戳不符")