Skip to main content

client_tasks_from_slide

Function client_tasks_from_slide 

Source
fn client_tasks_from_slide(
    tasks: Vec<CourseMaterialExerciseTask>,
    capable_slugs: &[String],
    reveal_model_solution: bool,
) -> Vec<ExerciseTask>
Expand description

Filters a slide’s tasks down to the ones whose exercise service can serve this client and converts them to the client shape. Shared by the list and single-exercise views so their visibility rules cannot drift apart. Model solutions are stripped unless reveal_model_solution; the list view never reveals them.