Don't count label flags in NbFlags
This commit is contained in:
parent
6855318e42
commit
5427d3cbf1
1 changed files with 3 additions and 1 deletions
|
@ -226,7 +226,9 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
|||
return nil, err
|
||||
} else {
|
||||
for _, k := range flags {
|
||||
exercice.NbFlags += 1
|
||||
if !strings.HasPrefix(k.Type, "label") {
|
||||
exercice.NbFlags += 1
|
||||
}
|
||||
|
||||
if !DisplayAllFlags && t != nil && !t.CanSeeFlag(k) {
|
||||
// Dependancy missing, skip the flag for now
|
||||
|
|
Reference in a new issue