Skip to main content

get_user_course_module_progress

Function get_user_course_module_progress 

Source
pub async fn get_user_course_module_progress(
    conn: &mut PgConnection,
    course_ids: &[Uuid],
    user_id: Uuid,
) -> ModelResult<HashMap<Uuid, UserCourseModuleProgress>>
Expand description

The user’s standing in every module of the given courses, keyed by course module id.

Every non-deleted module of those courses gets an entry, whether or not the user has answered anything in it. Closed chapters are included. Confusable with get_user_course_progress, which answers the same question one course at a time.