Skip to content

Commit

Permalink
Refactor update_feishu_daily.py to add block IDs for the third day's …
Browse files Browse the repository at this point in the history
…date and file links, and project block IDs for the third day's projects
  • Loading branch information
imjszhang committed Oct 16, 2024
1 parent 324dab6 commit db2d094
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update_feishu_daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Update Feishu Daily

on:
workflow_run:
workflows: ["Generate Daily Markdown"]
workflows: ["Publish to Feishu Document"]
types: [completed]
workflow_dispatch: # 手动触发

Expand Down
31 changes: 30 additions & 1 deletion scripts/update_feishu_daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,13 @@ def main():
date_block_ids = [
"doxcn2b9xmUFDZ4mpgfTcPt9FBf", # 第一天的日期块 ID
"A2tHdgXiWob1P7xwtsmcC3MZnFc", # 第二天的日期块 ID
"WVRqdUevRoCtA9x3Xg1cTnZInjd", # 第三天的日期块 ID
]

file_block_ids = [
"ArVZdFk7zoS0fxxCJGncbuwZnTg", # 第一天的文件链接块 ID
"IgyUdUcD5oGLgXxktjMcI5Vgnte", # 第二天的文件链接块 ID
"YhGqdRyaboakB2xruzScpAEonFg", # 第三天的文件链接块 ID
]

block_ids_list = [
Expand Down Expand Up @@ -404,7 +406,34 @@ def main():
"KjyNdbH6aogkuKx1XvJcEviSnqe",
"DH6PdDs12o9y9qxkwB1cFyr8nEb"
]
]
],
#第三天的项目块 ID 列表
[
[
"WPXQdeNjRoecJlxJlr1cUgD6nde",
"Z6GEdNXvsoFrcyxpmKBcbReJnPK",
"Hscfd3YE2o2LjHxiZNncqDaynEg",
"SpHYdoF3do66VUxNq1GcNAwUnrf",
"PGk5doERYoIaOPx3KxccA5LLnyh",
"OoYkdonauoZGyZxxLSNcaJelnNe"
],
[
"UutIdmgoJoRHLBxl3vYcAqmWnlg",
"OATKdaevvokk68xTCzecLD3Lnmd",
"UqNLdAHvuofoiOxaXABcFuK2nJn",
"YeQld9M6xoKJk8x28hGcHAzOnyb",
"Hi4ydcL3ho5BxLxCN58cKMsfnNe",
"O2nWdrjaeotVonxUMCecigj4n0b"
],
[
"SPIbduVKfovrPYxbAdccIlAhnjh",
"PGJtdDckyoromGxW9Ldcdv9EnFd",
"RrRUdJ278oOM5rxtqf2cRQHnnnf",
"HbnndGqsYoGBsgxpxtScmWH4nId",
"Ihhydm6VYowerwxG0bWcSt26n7b",
"BtROdgSoHoqliVxuG3nc3hO4nhh"
]
],
]

# 处理最近 3 天的 Markdown 文件
Expand Down

0 comments on commit db2d094

Please sign in to comment.