Skip to content

Commit

Permalink
Merge pull request #128 from correctexam/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
barais authored Feb 20, 2024
2 parents b28e2c3 + 91e5708 commit debb0d1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/fr/istic/web/rest/ExtendedAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -1896,10 +1896,14 @@ public Response getExamStatusFinish(@PathParam("examId") final long examId, @Con
.collect(Collectors.groupingBy(StudentResponse::getQuestionNumero));

var nbreSheet = ExamSheet.getAll4ExamId(examId).count();


var res = byQuestion.keySet().stream().allMatch(e-> byQuestion.get(e).size()==nbreSheet);
if (nbreSheet ==0){

if (nbreSheet ==0 || stdResponses.size()==0){
res = false;
}

return Response.ok(res).build();
}

Expand Down Expand Up @@ -2773,7 +2777,6 @@ public Response updateStudentResponse4Cluster(ClusterDTO clusterDto, @PathParam(
an.studentResponseId = stToUpdate.id;
an.stepValue = an1.stepValue;
this.answer2HybridGradedCommentService.persistOrUpdate(an);
log.error("pass par la2");

});
}
Expand Down

0 comments on commit debb0d1

Please sign in to comment.