Skip to content

Commit a9d398a

Browse files
authored
Merge pull request #52 from CBIIT/3.1.0
Merge 3.1.0 hotfix
2 parents e37b70f + 2d7ecfe commit a9d398a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/process_manifest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def process_manifest_file(log, configs, has_file_id, file_infos, manifest_rows,
8383
# This method will create a new manifest file with the file id column added to the pre-manifest.
8484
def add_file_id(file_id_name, file_name_name, final_manifest_path, file_infos, manifest_rows, manifest_columns, omit_prefix):
8585
output = []
86-
for file in file_infos:
87-
row = [row for row in manifest_rows if row[file_name_name] == file["fileName"]][0]
86+
for row in manifest_rows:
87+
file = [file for file in file_infos if file["fileName"] == row[file_name_name]][0]
8888
file[FILE_ID_DEFAULT] = file[FILE_ID_DEFAULT] if omit_prefix == False else file[FILE_ID_DEFAULT].replace(DCF_PREFIX, "")
8989
row[file_id_name] = file[FILE_ID_DEFAULT]
9090
output.append(row.values())

0 commit comments

Comments
 (0)