pub async fn apply_grading_update(
conn: &mut PgConnection,
exercise: &Exercise,
task_submission: &ExerciseTaskSubmission,
exercise_task_grading: &ExerciseTaskGrading,
exercise_task_grading_result: &ExerciseTaskGradingResult,
) -> ModelResult<UserExerciseState>Expand description
Applies a grading result that an exercise service sent after answering the grading request, to both the grading and the student’s exercise state.
Points follow the submission’s own UserPointsUpdateStrategy, as they would have had the
service graded synchronously. For a regrading, use update_grading_with_single_regrading_result.