Skip to content

Commit

Permalink
Update hfbackup_script.py
Browse files Browse the repository at this point in the history
  • Loading branch information
John6666cat authored Dec 27, 2024
1 parent d2ac44a commit 335533a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/hfbackup_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def on_ui(self, is_img2img=None):
return on_ui(self)

def update_schedule(self):
self.scheduler.remove_job('backup')
if "backup" in self.scheduler.get_jobs(): self.scheduler.remove_job("backup")
self.scheduler.add_job(func=backup_files, args=[self.backup_paths, self], trigger="interval", id="backup", seconds=60)
self.scheduler.start()

Expand Down

0 comments on commit 335533a

Please sign in to comment.