fix: 优化git配置文件

This commit is contained in:
Daniel
2026-03-02 14:25:44 +08:00
parent 2d800094b1
commit 5460e806b6
3 changed files with 8 additions and 5 deletions

View File

@@ -243,8 +243,8 @@ def fetch_news() -> None:
LAST_FETCH["inserted"] = n
if items:
_extract_and_merge_panel_data(items)
if n > 0:
_notify_node()
# 每次抓取完成都通知 Node 更新时间戳,便于「实时更新」显示
_notify_node()
print(f"[{datetime.now().strftime('%H:%M:%S')}] RSS 抓取 {len(items)} 条,新增入库 {n}")
except Exception as e:
LAST_FETCH["error"] = str(e)