From e6bcfdf3396204be64d3e49e5cf2ce0b8952d586 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 17 Sep 2024 13:47:55 -0400 Subject: [PATCH] Fix logical issue in backup migration --- app/migrations/20240308_multi-backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/migrations/20240308_multi-backup.py b/app/migrations/20240308_multi-backup.py index be0ffce4..64ff03e1 100644 --- a/app/migrations/20240308_multi-backup.py +++ b/app/migrations/20240308_multi-backup.py @@ -176,7 +176,7 @@ def migrate(migrator: Migrator, database, **kwargs): valid_schedules = [ schedule for schedule in all_schedules if is_valid_entry(schedule, all_servers) ] - if len(valid_schedules) > len(all_schedules): + if len(valid_schedules) < len(all_schedules): schedule_migration_status = False # Copy data from the existing backups table to the new one for backup in valid_backups: