Skip to content

Commit

Permalink
去掉计划任务备份多余的打印输出
Browse files Browse the repository at this point in the history
  • Loading branch information
吕林潇 committed Jan 4, 2022
1 parent 9881f18 commit 0cbfb7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions class/panelBackup.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,13 +832,12 @@ def send_notification(self, channel, title, msg = ""):
except Exception as e:
print(e)
return False

def save_backup_status(self, status, target="", msg=""):
"""保存备份的状态"""
try:
if not self.cron_info:
return
print("cron info:")
print(self.cron_info)
cron_id = self.cron_info["id"]
sql = public.M("system").dbfile("system").table("backup_status")
sql.add("id,target,status,msg,addtime", (cron_id, target, status, msg, time.time(),))
Expand Down

0 comments on commit 0cbfb7a

Please sign in to comment.