From fac9497e868f87e76fd9e0dee3e80dcdefa5faf8 Mon Sep 17 00:00:00 2001 From: SaipradeepR <53404427+SaipradeepR@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:34:51 +0530 Subject: [PATCH] Update AssessmentServiceV4Impl.java Retakes to -1 in-case of not consumed first attempt. --- .../org/sunbird/assessment/service/AssessmentServiceV4Impl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/sunbird/assessment/service/AssessmentServiceV4Impl.java b/src/main/java/org/sunbird/assessment/service/AssessmentServiceV4Impl.java index 55688a62e..c81c9b34d 100644 --- a/src/main/java/org/sunbird/assessment/service/AssessmentServiceV4Impl.java +++ b/src/main/java/org/sunbird/assessment/service/AssessmentServiceV4Impl.java @@ -92,7 +92,7 @@ public SBApiResponse retakeAssessment(String assessmentIdentifier, String token, if (serverProperties.isAssessmentRetakeCountVerificationEnabled()) { retakeAttemptsConsumed = calculateAssessmentRetakeCount(userId, assessmentIdentifier); - if(retakeAttemptsConsumed > 0) + // if(retakeAttemptsConsumed > 0) retakeAttemptsConsumed = retakeAttemptsConsumed-1; } } catch (Exception e) {