headless_lms_models::exercise_task_gradings

Function get_for_student

Source
pub async fn get_for_student(
    conn: &mut PgConnection,
    grading_id: Uuid,
    user_id: Uuid,
) -> ModelResult<Option<ExerciseTaskGrading>>
Expand description

Fetches the grading for the student, but hides the result in some circumstances. For example, for an ongoing exam.