sync: implement hint dependency on flags
This commit is contained in:
parent
20f2597248
commit
6740256a32
6 changed files with 72 additions and 2 deletions
|
|
@ -168,7 +168,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
|||
for _, h := range hints {
|
||||
if t == nil || HintCoefficient < 0 || t.HasHint(h) {
|
||||
exercice.Hints = append(exercice.Hints, myTeamHint{h.Id, h.Title, h.Content, h.File, h.Cost})
|
||||
} else {
|
||||
} else if t.CanSeeHint(h) {
|
||||
exercice.Hints = append(exercice.Hints, myTeamHint{h.Id, h.Title, "", "", h.Cost})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue