fic: Add Order, Help and Type values in struct

This commit is contained in:
nemunaire 2021-08-30 18:33:14 +02:00
commit 74e8c3801a
16 changed files with 134 additions and 110 deletions

View file

@ -13,7 +13,7 @@ import (
)
type wantChoices struct {
FlagId int64 `json:"id"`
FlagId int `json:"id"`
}
func treatWantChoices(pathname string, team fic.Team) {

View file

@ -18,9 +18,9 @@ import (
)
type ResponsesUpload struct {
Keys map[int64]string `json:"flags"`
MCQs map[int64]bool `json:"mcqs"`
MCQJ map[int64]string `json:"justifications"`
Keys map[int]string `json:"flags"`
MCQs map[int]bool `json:"mcqs"`
MCQJ map[int]string `json:"justifications"`
}
func treatSubmission(pathname string, team fic.Team, exercice_id string) {
@ -100,7 +100,7 @@ func treatSubmission(pathname string, team fic.Team, exercice_id string) {
continue
} else {
if responses.Keys == nil {
responses.Keys = map[int64]string{}
responses.Keys = map[int]string{}
}
responses.Keys[key.Id] = j
}