diff --git a/socs/db/suprsync.py b/socs/db/suprsync.py index ef9ca86fd..04d6fc4d2 100644 --- a/socs/db/suprsync.py +++ b/socs/db/suprsync.py @@ -347,7 +347,8 @@ def get_copyable_files(self, archive_name, session=None, query = session.query(SupRsyncFile).filter( SupRsyncFile.removed == None, # noqa: E711 SupRsyncFile.archive_name == archive_name, - SupRsyncFile.failed_copy_attempts < max_copy_attempts + SupRsyncFile.failed_copy_attempts < max_copy_attempts, + SupRsyncFile.ignore is False, ) files = []