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
|
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
|
||||||
|
|
Reference in a new issue