pub async fn claim_due_for_import(
conn: &mut PgConnection,
scope: &RegistrationScope,
limit: i64,
) -> ModelResult<Vec<CreditRegistration>>Expand description
Claims, for import, checking_enrolment rows, minus any whose student and course code already
have a submission in flight, which Suotar’s hour-old copy of Sisu would not stop from
registering twice, and any whose person and module slot in
uq_credit_registrations_person_module is taken. Of two rows for the same student and course
code claimed together only the first comes back; the other stays claimable where it is.