Skip to content

Commit

Permalink
fix(mapper): allow colum for ocid to be used in other columns
Browse files Browse the repository at this point in the history
  • Loading branch information
yshalenyk committed Jul 26, 2024
1 parent af879d3 commit 367bb94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nightingale/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def transform_data(self, data: list[dict[Any, Any]], mapping: MappingTemplate) -

ocid_mapping = mapping.get_ocid_mapping()
for row in data:
ocid = row.pop(ocid_mapping, "")
ocid = row.get(ocid_mapping, "")
if not ocid:
logger.warning(f"No OCID found in row: {row}. Skipping.")
continue
Expand Down

0 comments on commit 367bb94

Please sign in to comment.