This commit is contained in:
parent
fa1b21e49f
commit
476d7c4c07
@ -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…
x
Reference in New Issue
Block a user