Skip to main content

count_by_module_and_state_for_course

Function count_by_module_and_state_for_course 

Source
pub async fn count_by_module_and_state_for_course(
    conn: &mut PgConnection,
    course_id: Uuid,
) -> ModelResult<Vec<(Uuid, CreditRegistrationState, i64, i64)>>
Expand description

Live rows of one course per module and state, for the teacher’s per-module summary, with how many of each need a human folded in: both counts are read off the same scan, since the summary always wants them together.