修正:后的匹配

This commit is contained in:
CodingCat 2024-02-19 16:17:20 +08:00
parent 10dc195f1a
commit 28a429a3b9

View File

@ -71,6 +71,7 @@ new_file = new_dir + year + '/' + month + '/' + f'{today}.md'
projects_today = get_projects([today_file]) projects_today = get_projects([today_file])
projects_old = get_projects(old_files) projects_old = get_projects(old_files)
# 找出今天新增的项目并将其写入到新的文件中 # 找出今天新增的项目并将其写入到新的文件中
with open(new_file, 'w',encoding='utf-8') as file: with open(new_file, 'w',encoding='utf-8') as file:
file.write("## " + today + "\n") file.write("## " + today + "\n")