sync: Label flags can contain more than 255 chars in database
This commit is contained in:
parent
d6ff46ca7f
commit
190fdfe422
@ -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).")))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user