From 9a7b96bf75af6d5c53e617a8ef8572668d220962 Mon Sep 17 00:00:00 2001 From: Nick Warms Date: Thu, 2 Jan 2025 14:37:40 +0000 Subject: [PATCH] Use correct method to convert overall effectiveness --- .../Repositories/AcademyRepository.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/DfE.FindInformationAcademiesTrusts.Data.AcademiesDb/Repositories/AcademyRepository.cs b/DfE.FindInformationAcademiesTrusts.Data.AcademiesDb/Repositories/AcademyRepository.cs index 9cca4a031..80fd0224e 100644 --- a/DfE.FindInformationAcademiesTrusts.Data.AcademiesDb/Repositories/AcademyRepository.cs +++ b/DfE.FindInformationAcademiesTrusts.Data.AcademiesDb/Repositories/AcademyRepository.cs @@ -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), @@ -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),