Skip to content

Commit

Permalink
KB-5130 | DEV| Assessment | BE | Enhancement in Consumption Logic for…
Browse files Browse the repository at this point in the history
… the QuestionWeightage Assessment Type.

1. Assessment Bug fix.
  • Loading branch information
tarentomaheshvakkund committed Jun 14, 2024
1 parent 6c0460d commit 2c6c163
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,10 @@ public Map<String, Object> validateQumlAssessmentV2(Map<String, Object> question
String assessmentType= (String)questionSetDetailsMap.get(Constants.ASSESSMENT_TYPE);
String negativeWeightAgeEnabled;
int negativeMarksValue = 0;
int minimumPassPercentage = (int) questionSetDetailsMap.get(Constants.MINIMUM_PASS_PERCENTAGE);
int minimumPassPercentage = 0;
if (questionSetDetailsMap.get(Constants.MINIMUM_PASS_PERCENTAGE) != null) {
minimumPassPercentage = (int) questionSetDetailsMap.get(Constants.MINIMUM_PASS_PERCENTAGE);
}
Integer totalMarks= (Integer) questionSetDetailsMap.get(Constants.TOTAL_MARKS);
Map<String, Object> resultMap = new HashMap<>();
Map<String, Object> answers = getQumlAnswers(originalQuestionList,questionMap);
Expand Down

0 comments on commit 2c6c163

Please sign in to comment.