my-public.json: prefer display overview instead of statement, if available
This commit is contained in:
parent
3c29eaa2e9
commit
271b437d91
1 changed files with 3 additions and 0 deletions
|
@ -79,6 +79,9 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
||||||
}
|
}
|
||||||
exercice.Statement = e.Statement
|
exercice.Statement = e.Statement
|
||||||
if t == nil {
|
if t == nil {
|
||||||
|
if e.Overview != "" {
|
||||||
|
exercice.Statement = e.Overview
|
||||||
|
}
|
||||||
exercice.VideoURI = e.VideoURI
|
exercice.VideoURI = e.VideoURI
|
||||||
exercice.SolvedRank = 1
|
exercice.SolvedRank = 1
|
||||||
exercice.Tries = e.TriedCount()
|
exercice.Tries = e.TriedCount()
|
||||||
|
|
Reference in a new issue