Skip to content

Commit

Permalink
KB-5130 | DEV| Assessment | BE | Enhancement in Consumption Logic fo…
Browse files Browse the repository at this point in the history
…r the QuestionWeightage Assessment Type (#616)

1. Assessment Bug fix.
  • Loading branch information
tarentomaheshvakkund authored Jun 21, 2024
1 parent b120557 commit 08e900d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ private Map<String, Object> calculateSectionFinalResults(List<Map<String, Object
}
}
if(practiceAssessmentFlag){
res.put(Constants.OVERALL_RESULT, (correct / blank+correct+inCorrect) * 100);
res.put(Constants.OVERALL_RESULT, ((double)correct / (double)(blank+correct+inCorrect)) * 100);
}else{
res.put(Constants.OVERALL_RESULT, totalResult / sectionLevelResults.size());
}
Expand Down

0 comments on commit 08e900d

Please sign in to comment.