Skip to content

Commit 2d7ecfe

Browse files
authored
Merge pull request #50 from CBIIT/CRDCDH-2354-001-pgu
Fixed
2 parents f800794 + 80d1ce4 commit 2d7ecfe

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
@@ -81,8 +81,8 @@ def process_manifest_file(configs, has_file_id, file_infos, manifest_rows, manif
8181
# This method will create a new manifest file with the file id column added to the pre-manifest.
8282
def add_file_id(file_id_name, file_name_name, final_manifest_path, file_infos, manifest_rows, manifest_columns, omit_prefix):
8383
output = []
84-
for file in file_infos:
85-
row = [row for row in manifest_rows if row[file_name_name] == file["fileName"]][0]
84+
for row in manifest_rows:
85+
file = [file for file in file_infos if file["fileName"] == row[file_name_name]][0]
8686
file[FILE_ID_DEFAULT] = file[FILE_ID_DEFAULT] if omit_prefix == False else file[FILE_ID_DEFAULT].replace(DCF_PREFIX, "")
8787
row[file_id_name] = file[FILE_ID_DEFAULT]
8888
output.append(row.values())

0 commit comments

Comments
 (0)