Skip to content

Commit 79a7924

Browse files
committed
fix enable check
1 parent f1bd736 commit 79a7924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prime_backup/mcdr/task/backup/prune_backup_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def is_abort_able(self) -> bool:
292292
def run(self) -> PruneAllBackupResult:
293293
config = self.config.prune
294294
result = PruneAllBackupResult()
295-
if not config.regular_backup.enabled and not config.temporary_backup.enabled:
295+
if not any([config.regular_backup.enabled, config.temporary_backup.enabled, config.scheduled_backup.enabled]):
296296
if self.verbose >= _PruneVerbose.all:
297297
self.reply_tr('nothing_to_do')
298298
return result

0 commit comments

Comments
 (0)