pub async fn get_threshold_info_for_course(
conn: &mut PgConnection,
course_id: Uuid,
) -> ModelResult<Vec<CourseModuleThresholdInfo>>Expand description
Returns the configured threshold (if any) and the policy-derived minimum/default for every non-deleted module in the course. The exemption rule is applied here so the configuration UI does not have to recompute module sizes or duplicate the threshold constants.