2026-06-28 修复:weekly_digest.py 目录路径未随 daily 结构调整

This commit is contained in:
Beast
2026-06-28 17:24:25 +08:00
parent 31d39c7569
commit 78942fa595

View File

@ -79,7 +79,8 @@ def read_week_digests(week_start, week_end):
current = week_start current = week_start
while current <= week_end: while current <= week_end:
date_str = current.strftime("%Y-%m-%d") date_str = current.strftime("%Y-%m-%d")
daily_dir = os.path.join(daily_root, date_str) parts = date_str.split("-")
daily_dir = os.path.join(daily_root, parts[0], parts[1], parts[2])
if os.path.isdir(daily_dir): if os.path.isdir(daily_dir):
# Find the latest digest file for this day # Find the latest digest file for this day