We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0bf887 commit 567cfecCopy full SHA for 567cfec
1 file changed
scripts/fetch_snapshot.py
@@ -252,11 +252,11 @@ def fmt_sectors(data):
252
253
254
def fmt_news(data):
255
- focus = data.get("focus_news", [])
256
- if not focus:
+ macro = data.get("macro_news", [])
+ if not macro:
257
return "暂无新闻数据"
258
- lines = ["# 焦点新闻 — %s" % data.get("date", ""), ""]
259
- for n in focus[:6]:
+ lines = ["# 宏观新闻 — %s" % data.get("date", ""), ""]
+ for n in macro[:6]:
260
t = n.get("t", "")
261
if "T" in t:
262
t = t.split("T")[1][:5]
0 commit comments