Export VideoURI if they are defined
This commit is contained in:
parent
bd0deecc89
commit
da84a90b4f
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,7 @@ type myTeamExercice struct {
|
|||
Solved bool `json:"solved"`
|
||||
SolvedTime time.Time `json:"solved_time"`
|
||||
SolvedNumber int64 `json:"solved_number"`
|
||||
VideoURI string `json:"video_uri"`
|
||||
}
|
||||
type myTeam struct {
|
||||
Id int64 `json:"team_id"`
|
||||
|
@ -59,6 +60,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
|||
exercice.Statement = e.Statement
|
||||
exercice.Hint = e.Hint
|
||||
if t == nil {
|
||||
exercice.VideoURI = e.VideoURI
|
||||
exercice.Solved = true
|
||||
exercice.SolvedNumber = e.TriedCount()
|
||||
} else {
|
||||
|
|
Reference in a new issue