admin: New settings to define how to unlock standalone exercices

This commit is contained in:
nemunaire 2024-03-16 10:45:26 +01:00
parent 516ebf9c5a
commit a1ce2df131
2 changed files with 25 additions and 0 deletions

View file

@ -71,6 +71,10 @@ type Settings struct {
UnlockedChallengeDepth int `json:"unlockedChallengeDepth"`
// UnlockedChallengeUpTo unlock challenge up to a given level of deps.
UnlockedChallengeUpTo int `json:"unlockedChallengeUpTo"`
// UnlockedStandaloneExercices unlock this number of standalone exercice.
UnlockedStandaloneExercices int `json:"unlockedStandaloneExercices,omitempty"`
// UnlockedStandaloneExercicesByValidation unlock this number of standalone exercice for each exercice validated.
UnlockedStandaloneExercicesByValidation float64 `json:"unlockedStandaloneExercicesByValidation,omitempty"`
// SubmissionUniqueness don't count multiple times identical tries.
SubmissionUniqueness bool `json:"submissionUniqueness,omitempty"`
// CountOnlyNotGoodTries don't count as a try when one good response is given at least.