Refactor flags
Both QCM and Key are Flag
This commit is contained in:
parent
e029ec5414
commit
a66d6885e7
13 changed files with 315 additions and 246 deletions
|
|
@ -174,7 +174,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
|||
justifiedMCQ := map[int64]FlagLabel{}
|
||||
exercice.Flags = map[int64]myTeamFlag{}
|
||||
|
||||
if flags, err := e.GetFlags(); err != nil {
|
||||
if flags, err := e.GetFlagKeys(); err != nil {
|
||||
return nil, err
|
||||
} else {
|
||||
for _, k := range flags {
|
||||
|
|
@ -240,7 +240,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
|||
soluce := ""
|
||||
fullySolved := true
|
||||
if t != nil {
|
||||
m.PSolved = t.HasPartiallyRespond(mcq)
|
||||
m.PSolved = t.HasPartiallySolved(mcq)
|
||||
}
|
||||
|
||||
for _, e := range mcq.Entries {
|
||||
|
|
|
|||
Reference in a new issue