Skip to main content

expire_enrolment_recheck_allowance_for_testing

Function expire_enrolment_recheck_allowance_for_testing 

Source
pub async fn expire_enrolment_recheck_allowance_for_testing(
    conn: &mut PgConnection,
    id: Uuid,
    clear_restarts: bool,
) -> ModelResult<()>
Expand description

Backdates the row’s last enrolment check and last check request past the limit on asking, and the row itself past the student’s first-hour wait, so a spec can press a recheck button without waiting either out. With clear_restarts, also forgets the day’s restarts. Exists only for test setup.