pub async fn upsert_with_grading(
conn: &mut PgConnection,
user_exercise_slide_state_id: Uuid,
exercise_task_grading: &ExerciseTaskGrading,
) -> ModelResult<UserExerciseTaskState>
Expand description
Upserts user score from task grading results. The score can always increase or decrease, since they represent only a part of the whole user submission.