Skip to main content

exercise_progress

Function exercise_progress 

Source
async fn exercise_progress(
    conn: &mut PgConnection,
    user_id: Uuid,
    exercise: &Exercise,
    course_id: Uuid,
    state: Option<&UserExerciseState>,
) -> ModelResult<ExerciseProgress>
Expand description

The user’s progress on an exercise of the given course, with state their exercise state (absent when they have never touched the exercise). Reads the try counts only when they can decide the standing.