feat: 按自然月回补日报周报和月报

This commit is contained in:
Benature
2026-11-22 20:52:23 +08:00
parent 8f6831c3e8
commit 71fa22d1ba
8 changed files with 204 additions and 42 deletions

View File

@ -102,7 +102,7 @@ def load_previous_monthly_background(
workdays += 1
current += timedelta(days=1)
if workdays > 5:
return None, True
return None, False
# Load previous month's note
if target_day.month == 1:
@ -203,7 +203,6 @@ def generate_monthly(
properties = {
"version": get_version(),
"model": model.rsplit("/", 1)[-1],
"type": "monthly",
"is_read": False,
}
result = write_summary(output_path, add_obsidian_properties(content, properties))