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

2
.env Normal file
View File

@@ -0,0 +1,2 @@
# Mapbox 地图令牌
VITE_MAPBOX_ACCESS_TOKEN=pk.eyJ1IjoiZDI5cTAiLCJhIjoiY21oaGRmcTkzMGltZzJscHR1N2FhZnY5dCJ9.7ueF2lS6-C9Mm_xon7NnIA

7
.gitignore vendored
View File

@@ -27,6 +27,7 @@ dist-ssr
server/data.db
# Env
.env
.env.local
.env.*.local
# .env
# .env.local
# .env.*.local
.pyc

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)