my-public.json: prefer display overview instead of statement, if available

This commit is contained in:
nemunaire 2018-01-23 02:31:45 +01:00
parent 4bf9262e79
commit 91663f55af
1 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,9 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
}
exercice.Statement = e.Statement
if t == nil {
if e.Overview != "" {
exercice.Statement = e.Overview
}
exercice.VideoURI = e.VideoURI
exercice.SolvedRank = 1
exercice.Tries = e.TriedCount()