Skip to content

Commit

Permalink
🎨 任务成败通知美化
Browse files Browse the repository at this point in the history
  • Loading branch information
Cp0204 committed Apr 25, 2024
1 parent 5a04fc2 commit 36dd130
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quark_auto_save.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,14 +461,14 @@ def do_save_task(self, task):
# 获取stoken,同时可验证资源是否失效
is_sharing, stoken = self.get_stoken(pwd_id)
if not is_sharing:
add_notify(f"《{task['taskname']}》:{stoken}")
add_notify(f"{task['taskname']}》:{stoken}\n")
task["shareurl_ban"] = stoken
return
# print("stoken: ", stoken)

updated_tree = self.dir_check_and_save(task, pwd_id, stoken, pdir_fid)
if updated_tree.size(1) > 0:
add_notify(f"《{task['taskname']}》添加追更:\n{updated_tree}")
add_notify(f"{task['taskname']}》添加追更:\n{updated_tree}")
return True
else:
print(f"任务结束:没有新的转存任务")
Expand Down Expand Up @@ -583,7 +583,7 @@ def dir_check_and_save(self, task, pwd_id, stoken, pdir_fid="", subdir_path=""):
else:
err_msg = save_file_return["message"]
if err_msg:
add_notify(f"《{task['taskname']}》转存失败:{err_msg}")
add_notify(f"{task['taskname']}》转存失败:{err_msg}\n")
return tree

def query_task(self, task_id):
Expand Down

0 comments on commit 36dd130

Please sign in to comment.