Skip to content

Commit

Permalink
#2460 Renamed function
Browse files Browse the repository at this point in the history
  • Loading branch information
sambodeme committed Nov 1, 2023
1 parent fe64ec0 commit 69769ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions backend/audit/intakelib/transforms/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
from .xform_number_of_findings_need_to_be_integers import (
convert_number_of_findings_to_integers,
)
from .xform_loan_balance_need_to_be_integers import convert_loan_balance_to_integers
from .xform_loan_balance_need_to_be_integers import (
convert_loan_balance_to_integers_or_na,
)

# from .xform_filter_seq_numbers_where_there_are_no_values import filter_seq_numbers_where_there_are_no_values
# from .xform_make_sure_notes_to_sefa_are_just_strings import make_sure_notes_to_sefa_are_just_strings
Expand Down Expand Up @@ -98,6 +100,6 @@ def run_all_secondary_auditors_transforms(ir):
convert_subrecipient_amount_to_integers,
convert_total_amount_expended_to_integers,
convert_number_of_findings_to_integers,
convert_loan_balance_to_integers,
convert_loan_balance_to_integers_or_na,
regenerate_uniform_cluster_names,
]
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

# DESCRIPTION
# Convert end of period loan balance to integers when applicable
def convert_loan_balance_to_integers(ir):
def convert_loan_balance_to_integers_or_na(ir):
xform_ir = safe_int_conversion(ir, "loan_balance_at_audit_period_end", {"N/A"})
return xform_ir

0 comments on commit 69769ad

Please sign in to comment.