Skip to content

Commit

Permalink
Merge branch '3708-address-historical-federal-awards-with-missing-add…
Browse files Browse the repository at this point in the history
…itional-award-identification' of github.com:GSA-TTS/FAC into 3708-address-historical-federal-awards-with-missing-additional-award-identification
  • Loading branch information
sambodeme committed May 13, 2024
2 parents 0376d4f + 8d75a21 commit e1869e3
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -556,20 +556,19 @@ def xform_sanitize_additional_award_identification(audits, identifications):
"""Sanitize the input to ensure it does not start with ="" and end with " which might be interpreted as a formula in Excel."""

change_records = []
news_identifications = []
new_identifications = []
has_modified_identification = False
for audit, identification in zip(audits, identifications):
if (
identification
and identification.startswith('=""')
and identification.endswith('"')
):

new_identification = identification[3:-1]
has_modified_identification = True
else:
new_identification = identification
news_identifications.append(new_identification)
new_identifications.append(new_identification)

track_transformations(
"AWARDIDENTIFICATION",
Expand All @@ -583,7 +582,7 @@ def xform_sanitize_additional_award_identification(audits, identifications):
if change_records and has_modified_identification:
InspectionRecord.append_federal_awards_changes(change_records)

return news_identifications
return new_identifications


def xform_populate_default_award_identification_values(audits):
Expand Down

0 comments on commit e1869e3

Please sign in to comment.