diff --git a/backend/apps/archive/management/commands/import_data.py b/backend/apps/archive/management/commands/import_data.py index b4da2b4..8e75f1e 100644 --- a/backend/apps/archive/management/commands/import_data.py +++ b/backend/apps/archive/management/commands/import_data.py @@ -117,7 +117,7 @@ class BaseImporter(ABC): hash_blake3=file_hash ) - if created: + if created or not file_instance.file: with open(file_path, "rb") as file: file_instance.file.save(hash_file_name, file)