Skip to content

Commit 150b8d6

Browse files
Merge pull request #424 from microbiomedata/423-incorrect-urls-for-data-objects
Fix URL generation in run_import.py
2 parents 1bcb85c + f060cec commit 150b8d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nmdc_automation/run_process/run_import.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def import_projects(ctx, import_file, import_yaml, site_configuration, update_d
207207
"md5_checksum": md5,
208208
"data_object_type": mapping.data_object_type,
209209
"was_generated_by": mapping.nmdc_process_id,
210-
"url": f"{import_mapper.data_source_url}/{import_mapper.data_generation_id}/{export_file}",
210+
"url": f"{import_mapper.data_source_url}/{import_mapper.data_generation_id}/{nmdc_process_id}/{nmdc_data_file_name}",
211211
"description": description
212212
}
213213
# Add to the import_db if it doesn't already exist

0 commit comments

Comments
 (0)