feat: improve dropped question support

This commit is contained in:
2026-09-20 00:41:26 -04:00
parent ba84c4d82a
commit cea03048b8
18 changed files with 302 additions and 86 deletions
+12 -2
View File
@@ -355,7 +355,12 @@ pub fn student_value(diagnostic: &StudentDiagnostic, config: &RenderConfig) -> V
diagnostic
.dropped_questions
.iter()
.map(|n| Value::Int(*n as i64))
.map(|dropped| {
let mut value = Value::dict();
value.insert("number", Value::Int(dropped.number as i64));
value.insert("full-credit", Value::Bool(dropped.full_credit));
value
})
.collect(),
),
);
@@ -630,7 +635,12 @@ pub fn cohort_value(diagnostic: &CohortDiagnostic, config: &RenderConfig) -> Val
diagnostic
.dropped_questions
.iter()
.map(|n| Value::Int(*n as i64))
.map(|dropped| {
let mut value = Value::dict();
value.insert("number", Value::Int(dropped.number as i64));
value.insert("full-credit", Value::Bool(dropped.full_credit));
value
})
.collect(),
),
);