pub async fn count_by_state(
conn: &mut PgConnection,
) -> ModelResult<Vec<(CreditRegistrationState, i64)>>Expand description
Live rows per state, for the dashboard funnel. Superseded attempts are excluded, as in the per-course sibling, or a course that regrades counts every student twice.