17713 fix underscore in datasource.sync (#17729)

This commit is contained in:
Arthur Hanson 2024-10-10 13:08:48 -07:00 committed by GitHub
parent e59f776e02
commit 4e763462e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -201,7 +201,7 @@ class DataSource(JobsMixin, PrimaryModel):
logger.debug(f"Updated {updated_count} files") logger.debug(f"Updated {updated_count} files")
# Bulk delete deleted files # Bulk delete deleted files
deleted_count, _ = DataFile.objects.filter(pk__in=deleted_file_ids).delete() deleted_count, __ = DataFile.objects.filter(pk__in=deleted_file_ids).delete()
logger.debug(f"Deleted {deleted_count} files") logger.debug(f"Deleted {deleted_count} files")
# Walk the local replication to find new files # Walk the local replication to find new files