Skip to content

Commit 567cfec

Browse files
author
FutuAPI Developer
committed
fix: 焦点新闻改为宏观新闻(macro_news)
1 parent f0bf887 commit 567cfec

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/fetch_snapshot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,11 @@ def fmt_sectors(data):
252252

253253

254254
def fmt_news(data):
255-
focus = data.get("focus_news", [])
256-
if not focus:
255+
macro = data.get("macro_news", [])
256+
if not macro:
257257
return "暂无新闻数据"
258-
lines = ["# 焦点新闻 — %s" % data.get("date", ""), ""]
259-
for n in focus[:6]:
258+
lines = ["# 宏观新闻 — %s" % data.get("date", ""), ""]
259+
for n in macro[:6]:
260260
t = n.get("t", "")
261261
if "T" in t:
262262
t = t.split("T")[1][:5]

0 commit comments

Comments
 (0)