Skip to main content

get_answer_files_by_exercise_id

Function get_answer_files_by_exercise_id 

Source
pub async fn get_answer_files_by_exercise_id(
    conn: &mut PgConnection,
    exercise_id: Uuid,
) -> ModelResult<Vec<ExerciseAnswerFile>>
Expand description

Every file of every file-typed answer to the exercise, ordered by user, then submission time, then the order the client sent the files in.

JSON-typed answers contribute nothing, and a soft delete at any layer – slide submission, task submission, link row or file upload – removes the file from the result.