feat: 按自然月回补日报周报和月报
This commit is contained in:
@ -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))
|
||||
|
||||
Reference in New Issue
Block a user