Skip to content

Commit

Permalink
update compute note 4 exam
Browse files Browse the repository at this point in the history
  • Loading branch information
barais committed Feb 5, 2024
1 parent c7df28c commit 64b0bc7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main/java/fr/istic/web/rest/ExtendedAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import fr.istic.domain.GradedComment;
import fr.istic.domain.HybridGradedComment;
import fr.istic.domain.Question;
import fr.istic.domain.QuestionType;
import fr.istic.domain.Scan;
import fr.istic.domain.Student;
import fr.istic.domain.StudentResponse;
Expand All @@ -37,7 +36,6 @@

import org.apache.commons.io.IOUtils;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import org.hibernate.result.Output;
import org.jboss.resteasy.annotations.providers.multipart.MultipartForm;
import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput;

Expand Down Expand Up @@ -88,8 +86,6 @@
import jakarta.ws.rs.*;
import jakarta.ws.rs.core.*;

import java.io.ByteArrayInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
Expand All @@ -107,7 +103,6 @@
import java.util.Optional;
import java.util.Set;
import java.util.Map.Entry;
import java.util.stream.Collector;
import java.util.stream.Collectors;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -779,7 +774,7 @@ public Response showResult(@PathParam("examId") long examId, @Context SecurityCo
df.format(
resp1.quarternote.doubleValue() / 4));

} else if (GradeType.HYBRID.equals(resp1.question.gradeType)) {
} else if (!"QCM".equals(resp1.question.type.algoName) && GradeType.HYBRID.equals(resp1.question.gradeType)) {

res.getNotequestions().put(resp1.question.numero,
df.format(
Expand Down

0 comments on commit 64b0bc7

Please sign in to comment.