ui: Display writeup in interface
This commit is contained in:
parent
45a9240834
commit
a6adc1ac8c
3 changed files with 25 additions and 18 deletions
|
@ -76,6 +76,7 @@ type myTeamExercice struct {
|
|||
Tries int64 `json:"tries,omitempty"`
|
||||
TotalTries int64 `json:"total_tries,omitempty"`
|
||||
VideoURI string `json:"video_uri,omitempty"`
|
||||
Resolution string `json:"resolution,omitempty"`
|
||||
Issue string `json:"issue,omitempty"`
|
||||
IssueKind string `json:"issuekind,omitempty"`
|
||||
}
|
||||
|
@ -130,6 +131,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
|||
exercice.Overview = strings.Replace(e.Overview, "$FILES$", FilesDir, -1)
|
||||
exercice.Finished = strings.Replace(e.Finished, "$FILES$", FilesDir, -1)
|
||||
exercice.VideoURI = e.VideoURI
|
||||
exercice.Resolution = strings.Replace(e.Resolution, "$FILES$", FilesDir, -1)
|
||||
exercice.TotalTries = e.TriedCount()
|
||||
exercice.Gain = int(float64(e.Gain) * e.Coefficient * GlobalScoreCoefficient)
|
||||
} else {
|
||||
|
|
Reference in a new issue