Compare commits

...

2 Commits

Author SHA1 Message Date
Cp0204
f62ca7a057 🐛 修正获取保存路径的多余斜杠 /
Some checks failed
Docker Publish / build-and-push (push) Has been cancelled
2025-04-22 13:24:39 +08:00
Hinata
c3ff5a49bd
🐛 Fix SyntaxError 2025-04-22 09:34:22 +08:00
3 changed files with 3 additions and 1 deletions

View File

@ -304,6 +304,7 @@ def get_savepath_detail():
account = Quark(config_data["cookie"][0], 0) account = Quark(config_data["cookie"][0], 0)
paths = [] paths = []
if path := request.args.get("path"): if path := request.args.get("path"):
path = re.sub(r"/+", "/", path)
if path == "/": if path == "/":
fid = 0 fid = 0
else: else:

View File

@ -983,6 +983,7 @@
this.fileSelect.paths = []; this.fileSelect.paths = [];
this.fileSelect.index = index; this.fileSelect.index = index;
$('#fileSelectModal').modal('toggle'); $('#fileSelectModal').modal('toggle');
this.formData.tasklist[index].savepath = this.formData.tasklist[index].savepath.replace(/\/+/g, "/");
this.getSavepathDetail(this.formData.tasklist[index].savepath); this.getSavepathDetail(this.formData.tasklist[index].savepath);
}, },
getShareDetail() { getShareDetail() {

View File

@ -932,7 +932,7 @@ def do_save(account, tasklist=[]):
print(f"更子目录: {task['update_subdir']}") print(f"更子目录: {task['update_subdir']}")
if task.get("runweek") or task.get("enddate"): if task.get("runweek") or task.get("enddate"):
print( print(
f"运行周期: WK{task.get("runweek",[])} ~ {task.get('enddate','forever')}" f"运行周期: WK{task.get('runweek',[])} ~ {task.get('enddate','forever')}"
) )
print() print()
# 判断任务周期 # 判断任务周期