Skip to main content

attainment_matching_submission

Function attainment_matching_submission 

Source
pub fn attainment_matching_submission<'a>(
    existing: &'a [RegistryAttainment],
    attainment_date: NaiveDate,
    submitted_at: Option<DateTime<Utc>>,
    grade: &MappedGrade,
) -> Option<&'a RegistryAttainment>
Expand description

The attainment a submission we lost track of would have produced, matched on what we sent.

Suotar may move the attainment date into the study right without telling us, so an attainment registered within a couple of days of submitted_at matches on its grade alone. The course unit attainment wins over the assessment item one it is built from.