sync: Prefer challenge.toml over challenge.txt
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b5065df4c3
commit
651d428223
7 changed files with 16 additions and 16 deletions
|
|
@ -121,7 +121,7 @@ func buildExerciceHints(i Importer, exercice *fic.Exercice, exceptions *CheckExc
|
|||
|
||||
// CheckExerciceHints checks if all hints are corrects..
|
||||
func CheckExerciceHints(i Importer, exercice *fic.Exercice, exceptions *CheckExceptions) ([]importHint, error) {
|
||||
exceptions = exceptions.GetFileExceptions("challenge.txt", "challenge.toml")
|
||||
exceptions = exceptions.GetFileExceptions("challenge.toml", "challenge.txt")
|
||||
|
||||
hints, errs := buildExerciceHints(i, exercice, exceptions)
|
||||
|
||||
|
|
@ -139,7 +139,7 @@ func SyncExerciceHints(i Importer, exercice *fic.Exercice, flagsBindings map[int
|
|||
if _, err := exercice.WipeHints(); err != nil {
|
||||
errs = multierr.Append(errs, err)
|
||||
} else {
|
||||
exceptions = exceptions.GetFileExceptions("challenge.txt", "challenge.toml")
|
||||
exceptions = exceptions.GetFileExceptions("challenge.toml", "challenge.txt")
|
||||
|
||||
hints, berrs := buildExerciceHints(i, exercice, exceptions)
|
||||
errs = multierr.Append(errs, berrs)
|
||||
|
|
|
|||
Reference in a new issue