fix: 脚本路径同步更新为YYYY/MM/DD嵌套结构
This commit is contained in:
@ -163,7 +163,8 @@ def read_week_daily_reports(week_start, week_end):
|
||||
date_str = current.strftime("%Y-%m-%d")
|
||||
# Daily reports are named: 每日阅读_YYYY-MM-DD.md
|
||||
filename = f"每日阅读_{date_str}.md"
|
||||
filepath = os.path.join(daily_dir, filename)
|
||||
parts = date_str.split("-")
|
||||
filepath = os.path.join(daily_dir, parts[0], parts[1], parts[2], filename)
|
||||
|
||||
if os.path.exists(filepath):
|
||||
with open(filepath, "r", encoding="utf-8") as f:
|
||||
|
||||
Reference in New Issue
Block a user