Skip to content

Commit

Permalink
Update backup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Dec 23, 2024
1 parent 5fd207c commit 0d4b157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def backupDatabase(self, name, count):
pid = mw.M('databases').dbPos(db_path, db_name).where(
'name=?', (name,)).getField('id')

mw.M('backup').add('type,name,pid,filename,addtime,size', (1, os.path.basename(
mw.M('backup').add('type,name,pid,filename,add_time,size', (1, os.path.basename(
filename), pid, filename, endDate, os.path.getsize(filename)))
log = "数据库[" + name + "]备份成功,用时[" + str(round(outTime, 2)) + "]秒"
mw.writeLog('计划任务', log)
Expand Down

0 comments on commit 0d4b157

Please sign in to comment.