Skip to main content

shift_past_pause

Function shift_past_pause 

Source
pub async fn shift_past_pause(
    conn: &mut PgConnection,
    course_module_id: Uuid,
    paused_for: TimeDelta,
) -> ModelResult<u64>
Expand description

Moves the schedules of a module’s rows past a pause of paused_for, so the pause spends none of their ladder. A batched row stays on a batch boundary. Stopped rows are left as they are.