sync: Label flags can contain more than 255 chars in database

This commit is contained in:
nemunaire 2023-11-04 23:09:30 +01:00
parent d6ff46ca7f
commit 190fdfe422
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ func buildKeyFlag(exercice *fic.Exercice, flag ExerciceFlag, flagline int, defau
}
flag.Label = prep + flag.Label
if len(flag.Label) > 255 {
if len(flag.Label) > 255 && flag.Type != "label" {
errs = append(errs, NewFlagError(exercice, &flag, flagline, fmt.Errorf("label is too long (max 255 chars per label).")))
}