fix: 优化git配置文件
This commit is contained in:
2
.env
Normal file
2
.env
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Mapbox 地图令牌
|
||||||
|
VITE_MAPBOX_ACCESS_TOKEN=pk.eyJ1IjoiZDI5cTAiLCJhIjoiY21oaGRmcTkzMGltZzJscHR1N2FhZnY5dCJ9.7ueF2lS6-C9Mm_xon7NnIA
|
||||||
7
.gitignore
vendored
7
.gitignore
vendored
@@ -27,6 +27,7 @@ dist-ssr
|
|||||||
server/data.db
|
server/data.db
|
||||||
|
|
||||||
# Env
|
# Env
|
||||||
.env
|
# .env
|
||||||
.env.local
|
# .env.local
|
||||||
.env.*.local
|
# .env.*.local
|
||||||
|
.pyc
|
||||||
|
|||||||
@@ -243,7 +243,7 @@ def fetch_news() -> None:
|
|||||||
LAST_FETCH["inserted"] = n
|
LAST_FETCH["inserted"] = n
|
||||||
if items:
|
if items:
|
||||||
_extract_and_merge_panel_data(items)
|
_extract_and_merge_panel_data(items)
|
||||||
if n > 0:
|
# 每次抓取完成都通知 Node 更新时间戳,便于「实时更新」显示
|
||||||
_notify_node()
|
_notify_node()
|
||||||
print(f"[{datetime.now().strftime('%H:%M:%S')}] RSS 抓取 {len(items)} 条,新增入库 {n} 条")
|
print(f"[{datetime.now().strftime('%H:%M:%S')}] RSS 抓取 {len(items)} 条,新增入库 {n} 条")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user