Skip to content

Commit 87c2570

Browse files
committed
fix: 同步路径也写入 checked_at + 删除多余 today is not None 判断
1 parent 9ef5b59 commit 87c2570

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

quantclass_sync_internal/data_query.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ def get_products_overview(
104104
cache_fresh = (
105105
cached_api_date is not None
106106
and freshness_anchor is not None
107-
and today is not None
108107
and (today - freshness_anchor).days <= _STALE_GRACE_DAYS
109108
)
110109
ref_date = cached_api_date if cache_fresh else today

quantclass_sync_internal/status_store.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ def _update_product_last_status(log_dir: Path, report: RunReport) -> None:
471471
"reason_code": item.reason_code,
472472
"error": item.error,
473473
"date_time": item.date_time,
474+
"checked_at": datetime.now().strftime("%Y-%m-%d"),
474475
}
475476
# 原子写入
476477
with atomic_temp_path(status_path, tag="last_status") as tmp:

0 commit comments

Comments
 (0)