diff --git a/cicd/modify_custom_rs_db.py b/cicd/modify_custom_rs_db.py index 1acd42a9..dec93546 100644 --- a/cicd/modify_custom_rs_db.py +++ b/cicd/modify_custom_rs_db.py @@ -75,7 +75,7 @@ logger.info("Duplicating styrene record then withdrawing it. (TestActAsReadUser)") data_import_service = gdl_session.dataImportService - substances_guid = custom_table_name_map["Chemicals"] + substances_guid = custom_table_name_map["Restricted Substances"] copy_import_record = gdl.ImportRecord( existingRecord=gdl.RecordReference( DBKey=CUSTOM_DB_KEY, diff --git a/cicd/prepare_rs_db.py b/cicd/prepare_rs_db.py index 9caeb078..f54076c0 100644 --- a/cicd/prepare_rs_db.py +++ b/cicd/prepare_rs_db.py @@ -269,9 +269,10 @@ def add_records_to_subset( ) ) import_record = gdl.ImportRecord( - existingRecord=gdl.RecordReference(DBKey=db_key, historyGUID=history_guid, recordGUID=record_guid), + existingRecord=gdl.RecordReference(DBKey=db_key, historyGUID=history_guid), subsetReferences=new_subsets, releaseRecord=True, + importRecordMode="Update", ) import_records.append(import_record) self._logger.info("Adding specified records to the new subset")