Skip to content

Commit

Permalink
Retake Count Fix
Browse files Browse the repository at this point in the history
Retake Count Fix
  • Loading branch information
SaipradeepR authored Aug 2, 2024
1 parent d26709b commit 730e798
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ public SBApiResponse retakeAssessment(String assessmentIdentifier, String token,

if (serverProperties.isAssessmentRetakeCountVerificationEnabled()) {
retakeAttemptsConsumed = calculateAssessmentRetakeCount(userId, assessmentIdentifier);
if(retakeAttemptsConsumed > 0)
retakeAttemptsConsumed = retakeAttemptsConsumed-1;
}
} catch (Exception e) {
errMsg = String.format("Error while calculating retake assessment. Exception: %s", e.getMessage());
Expand Down

0 comments on commit 730e798

Please sign in to comment.