Readd disclaimer to my.json
This commit is contained in:
parent
724f985770
commit
7692f92aa4
1 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,7 @@ type myTeamFile struct {
|
|||
Checksum string `json:"checksum"`
|
||||
Compressed bool `json:"compressed,omitempty"`
|
||||
Size int64 `json:"size"`
|
||||
Disclaimer string `json:"disclaimer,omitempty"`
|
||||
}
|
||||
type myTeamHint struct {
|
||||
HintId int64 `json:"id"`
|
||||
|
@ -213,7 +214,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
|||
cksum = f.ChecksumShown
|
||||
compressed = true
|
||||
}
|
||||
exercice.Files = append(exercice.Files, myTeamFile{path.Join(FilesDir, f.Path), f.Name, hex.EncodeToString(cksum), compressed, f.Size})
|
||||
exercice.Files = append(exercice.Files, myTeamFile{path.Join(FilesDir, f.Path), f.Name, hex.EncodeToString(cksum), compressed, f.Size, f.Disclaimer})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue