Function headless_lms_models::course_background_questions::get_background_questions_and_answers
source · pub async fn get_background_questions_and_answers(
conn: &mut PgConnection,
course_instance: &CourseInstance,
user_id: Uuid
) -> ModelResult<CourseBackgroundQuestionsAndAnswers>
Expand description
Return all background questions (and existing answers) that will need to be asked when the user enrolls on a course instance. Includes both instance specific questions and course specific questions.