mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-12 07:10:44 +08:00
修复过期任务也预建文件夹
This commit is contained in:
parent
0caa4111ac
commit
77a0699cda
@ -272,7 +272,15 @@ def rename(fid, file_name):
|
||||
|
||||
|
||||
def update_savepath_fid(tasklist):
|
||||
dir_paths = [item["savepath"] for item in tasklist]
|
||||
dir_paths = [
|
||||
item["savepath"]
|
||||
for item in tasklist
|
||||
if not item.get("enddate")
|
||||
or (
|
||||
datetime.now().date()
|
||||
<= datetime.strptime(item["enddate"], "%Y-%m-%d").date()
|
||||
)
|
||||
]
|
||||
dir_paths_exist_arr = get_fids(dir_paths)
|
||||
dir_paths_exist = [item["file_path"] for item in dir_paths_exist_arr]
|
||||
# 比较创建不存在的
|
||||
|
||||
Loading…
Reference in New Issue
Block a user