Skip to main content

record_starts

Function record_starts 

Source
pub async fn record_starts(
    conn: &mut PgConnection,
    starts: &[EnrolmentCheckStart],
) -> ModelResult<()>
Expand description

Writes the schedules rows start with, and ends the checks of the earlier attempts each new row replaces for its student and module.

Only rows still in expected_state: one a phase moved since the decision keeps whatever that phase wrote.