Expect full downloadable file pathname (allow CDN)

This commit is contained in:
nemunaire 2016-02-26 01:31:00 +01:00 committed by Pierre-Olivier Mercier
commit ee67788d59
3 changed files with 3 additions and 5 deletions

View file

@ -3,7 +3,6 @@ package fic
import (
"encoding/hex"
"fmt"
"path"
"time"
)
@ -87,7 +86,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
return nil, err
} else {
for _, f := range files {
exercice.Files = append(exercice.Files, myTeamFile{path.Join("/files", f.Path), f.Name, hex.EncodeToString(f.Checksum), f.Size})
exercice.Files = append(exercice.Files, myTeamFile{f.Path, f.Name, hex.EncodeToString(f.Checksum), f.Size})
}
}