admin/sync: Able to filter on the second column

This commit is contained in:
nemunaire 2022-11-02 17:42:08 +01:00
parent 3d35cee67d
commit 7b2603afb0
2 changed files with 23 additions and 1 deletions

View file

@ -118,7 +118,7 @@ func buildLabelFlag(exercice *fic.Exercice, flag ExerciceFlag, flagline int, exc
// Call checks hooks
for _, h := range hooks.flagLabelHooks {
for _, e := range h(f, exceptions) {
for _, e := range h(f, exceptions.Filter2ndCol(strconv.Itoa(flagline))) {
errs = append(errs, NewFlagError(exercice, &flag, flagline, e))
}
}