国内AI时讯
This commit is contained in:
@@ -18,6 +18,7 @@ ICONS = {
|
||||
"emerging": "🌱",
|
||||
"topic": "🤖",
|
||||
"ainews": "🌍",
|
||||
"cnainews": "🇨🇳",
|
||||
"pick": "📦",
|
||||
"theme": "🎯",
|
||||
"file": "📄",
|
||||
@@ -231,6 +232,7 @@ def build_wecom_report(
|
||||
topic_name: str,
|
||||
topic_repos: list[dict[str, Any]],
|
||||
ai_news: list[dict[str, Any]] | None = None,
|
||||
cn_ai_news: list[dict[str, Any]] | None = None,
|
||||
pick_command: str,
|
||||
) -> str:
|
||||
lines = [
|
||||
@@ -250,6 +252,11 @@ def build_wecom_report(
|
||||
lines.extend(_ai_news_lines(ai_news))
|
||||
lines.append("")
|
||||
|
||||
if cn_ai_news:
|
||||
lines.append(f"{ICONS['cnainews']} **国内 AI 时讯 Top {len(cn_ai_news)}**")
|
||||
lines.extend(_ai_news_lines(cn_ai_news))
|
||||
lines.append("")
|
||||
|
||||
lines.append(f"{ICONS['trending']} **Skills Trending Top {len(trending)}**")
|
||||
for rank, item in enumerate(trending, 1):
|
||||
lines.extend(_skill_line(rank, item, badge=item.get("badge", "")))
|
||||
|
||||
Reference in New Issue
Block a user