fic: Add Order, Help and Type values in struct
This commit is contained in:
parent
867e9bb345
commit
74e8c3801a
16 changed files with 134 additions and 110 deletions
|
|
@ -13,7 +13,7 @@ import (
|
|||
)
|
||||
|
||||
type wantChoices struct {
|
||||
FlagId int64 `json:"id"`
|
||||
FlagId int `json:"id"`
|
||||
}
|
||||
|
||||
func treatWantChoices(pathname string, team fic.Team) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue