Add new helper string related to justified MCQ flag
This commit is contained in:
parent
11e0b46034
commit
c5b65289d3
10 changed files with 121 additions and 69 deletions
|
|
@ -87,7 +87,7 @@ func treatSubmission(pathname string, team fic.Team, exercice_id string) {
|
|||
} else if mcq.IdExercice != exercice.Id {
|
||||
log.Println(id, "[ERR] We retrieve an invalid MCQ: from exercice", mcq.IdExercice, "whereas expected from exercice", exercice.Id)
|
||||
return
|
||||
} else if key, err := mcq.GetJustifiedFlag(exercice, choice); err != nil {
|
||||
} else if key, err := choice.GetJustifiedFlag(exercice); err != nil {
|
||||
// Most probably, we enter here because the selected choice has not to be justified
|
||||
// So, just ignore this case as it will be invalidated by the mcq validation
|
||||
continue
|
||||
|
|
|
|||
Reference in a new issue