Updated it to work with the new canges

This commit is contained in:
Tiago Ribeiro
2024-07-23 14:43:24 +01:00
parent a1c7f70329
commit 10a3243756
3 changed files with 454 additions and 551 deletions

View File

@@ -357,7 +357,7 @@ export default function ExamPage({page}: Props) {
exercise, exercise,
solutions.find((x) => x.exercise === exercise.id)!, solutions.find((x) => x.exercise === exercise.id)!,
evaluationID, evaluationID,
index === 0 ? 1 : 2, index + 1,
); );
}), }),
) )

File diff suppressed because it is too large Load Diff

View File

@@ -51,7 +51,7 @@ export const evaluateSpeakingAnswer = async (
case "speaking": case "speaking":
return {...(await evaluateSpeakingExercise(exercise, exercise.id, solution, id, task)), id} as UserSolution; return {...(await evaluateSpeakingExercise(exercise, exercise.id, solution, id, task)), id} as UserSolution;
case "interactiveSpeaking": case "interactiveSpeaking":
return {...(await evaluateInteractiveSpeakingExercise(exercise.id, solution, id, exercise.variant)), id} as UserSolution; return {...(await evaluateInteractiveSpeakingExercise(exercise.id, solution, id, task === 3 ? "final" : "initial")), id} as UserSolution;
default: default:
return undefined; return undefined;
} }