Skip to content

Commit

Permalink
Use correct method to convert overall effectiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
nwarms committed Jan 2, 2025
1 parent 3be8ccd commit 9a7b96b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ await academiesDbContext.FurtherEducationEstablishmentsFiat
new AcademyOfstedRatings(
mfe.ProviderUrn,
new OfstedRating(
ConvertNullableIntToOfstedRatingScore(mfe.OverallEffectiveness.ParseAsNullableInt()),
ConvertOverallEffectivenessToOfstedRatingScore(mfe.OverallEffectiveness),
ConvertNullableIntToOfstedRatingScore(mfe.QualityOfEducation),
ConvertNullableIntToOfstedRatingScore(mfe.BehaviourAndAttitudes),
ConvertNullableIntToOfstedRatingScore(mfe.PersonalDevelopment),
Expand All @@ -105,8 +105,7 @@ await academiesDbContext.FurtherEducationEstablishmentsFiat
ConvertStringToSafeguardingScore(mfe.IsSafeguardingEffective),
mfe.LastDayOfInspection.ParseAsNullableDate()),
new OfstedRating(
ConvertNullableIntToOfstedRatingScore(mfe.PreviousOverallEffectiveness
.ParseAsNullableInt()),
ConvertOverallEffectivenessToOfstedRatingScore(mfe.PreviousOverallEffectiveness),
ConvertNullableIntToOfstedRatingScore(mfe.PreviousQualityOfEducation),
ConvertNullableIntToOfstedRatingScore(mfe.PreviousBehaviourAndAttitudes),
ConvertNullableIntToOfstedRatingScore(mfe.PreviousPersonalDevelopment),
Expand Down

0 comments on commit 9a7b96b

Please sign in to comment.