Don't count label flags in NbFlags

This commit is contained in:
nemunaire 2023-03-12 11:30:41 +01:00
parent 6855318e42
commit 5427d3cbf1

View file

@ -226,7 +226,9 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
return nil, err return nil, err
} else { } else {
for _, k := range flags { for _, k := range flags {
if !strings.HasPrefix(k.Type, "label") {
exercice.NbFlags += 1 exercice.NbFlags += 1
}
if !DisplayAllFlags && t != nil && !t.CanSeeFlag(k) { if !DisplayAllFlags && t != nil && !t.CanSeeFlag(k) {
// Dependancy missing, skip the flag for now // Dependancy missing, skip the flag for now