my-public.json: prefer display overview instead of statement, if available
This commit is contained in:
parent
4bf9262e79
commit
91663f55af
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user