From 6c2aed4cb0650cd9e95cc392f43945c0e94a7ff2 Mon Sep 17 00:00:00 2001 From: Philip Dominguez <142051477+phildominguez-gsa@users.noreply.github.com> Date: Fri, 10 Jan 2025 08:52:32 -0500 Subject: [PATCH] Snake-casing keyFound --- backend/audit/intakelib/mapping_util.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/backend/audit/intakelib/mapping_util.py b/backend/audit/intakelib/mapping_util.py index cc04f395c3..6ef87d0953 100644 --- a/backend/audit/intakelib/mapping_util.py +++ b/backend/audit/intakelib/mapping_util.py @@ -137,19 +137,19 @@ def _extract_named_ranges(errors, column_mapping, field_mapping, meta_mapping): if not path: continue - keyFound = _extract_key_from_award_entities(path, named_ranges) + key_found = _extract_key_from_award_entities(path, named_ranges) - if not keyFound: - keyFound = _extract_from_column_mapping(path, column_mapping, match) + if not key_found: + key_found = _extract_from_column_mapping(path, column_mapping, match) - if not keyFound: - keyFound = _extract_from_field_mapping(path, field_mapping, match) + if not key_found: + key_found = _extract_from_field_mapping(path, field_mapping, match) - if not keyFound: - keyFound = _extract_from_field_mapping(path, meta_mapping, match) + if not key_found: + key_found = _extract_from_field_mapping(path, meta_mapping, match) - if keyFound: - named_ranges.append((keyFound, row_index)) + if key_found: + named_ranges.append((key_found, row_index)) else: logger.info(f"No named range matches this error path: {error.path}")