Skip to main content

count_by_step_and_engagement

Function count_by_step_and_engagement 

Source
pub async fn count_by_step_and_engagement(
    conn: &mut PgConnection,
    account_linking_since: Option<DateTime<Utc>>,
) -> ModelResult<Vec<StepCount>>
Expand description

Live rows per module, step and engagement: the overview’s “Where registrations stand”, the Courses tab’s per-module table and the daily snapshot.

Counts exactly what get_admin_facing lists filtered to the same step, engagement and module, superseded rows left out: a row waiting for a student number is counted only if it completed since account_linking_since.