diff --git a/src/main/java/org/sunbird/assessment/service/AssessmentServiceV5Impl.java b/src/main/java/org/sunbird/assessment/service/AssessmentServiceV5Impl.java index 336ba9ddb..167d8eef0 100644 --- a/src/main/java/org/sunbird/assessment/service/AssessmentServiceV5Impl.java +++ b/src/main/java/org/sunbird/assessment/service/AssessmentServiceV5Impl.java @@ -392,13 +392,12 @@ public SBApiResponse submitAssessmentAsync(Map submitRequest, St } } if (Constants.SECTION_LEVEL_SCORE_CUTOFF.equalsIgnoreCase(scoreCutOffType)) { - boolean practiceAssessmentFlag = ((String) assessmentHierarchy.get(Constants.PRIMARY_CATEGORY)).equalsIgnoreCase(Constants.PRACTICE_QUESTION_SET); long assessmentStartTime = 0; if (existingAssessmentData.get(Constants.START_TIME)!=null) { Date assessmentStart = (Date) existingAssessmentData.get(Constants.START_TIME); assessmentStartTime = assessmentStart.getTime(); } - Map result = calculateSectionFinalResults(sectionLevelsResults,assessmentStartTime,assessmentCompletionTime,maxAssessmentRetakeAttempts,retakeAttemptsConsumed,practiceAssessmentFlag); + Map result = calculateSectionFinalResults(sectionLevelsResults,assessmentStartTime,assessmentCompletionTime,maxAssessmentRetakeAttempts,retakeAttemptsConsumed); outgoingResponse.getResult().putAll(result); outgoingResponse.getParams().setStatus(Constants.SUCCESS); outgoingResponse.setResponseCode(HttpStatus.OK); @@ -790,7 +789,7 @@ private void writeDataToDatabaseAndTriggerKafkaEvent(Map submitR } } - private Map calculateSectionFinalResults(List> sectionLevelResults, long assessmentStartTime, long assessmentCompletionTime, int maxAssessmentRetakeAttempts, int retakeAttemptsConsumed, boolean practiceAssessmentFlag) { + private Map calculateSectionFinalResults(List> sectionLevelResults, long assessmentStartTime, long assessmentCompletionTime, int maxAssessmentRetakeAttempts, int retakeAttemptsConsumed) { Map res = new HashMap<>(); Double result; Integer correct = 0; @@ -820,11 +819,7 @@ private Map calculateSectionFinalResults(List