admin: Can import videos
This commit is contained in:
parent
dfe62e0b97
commit
223f44572e
7 changed files with 59 additions and 6 deletions
|
@ -133,7 +133,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
|||
if t == nil {
|
||||
exercice.Overview = strings.Replace(e.Overview, "$FILES$", FilesDir, -1)
|
||||
exercice.Finished = strings.Replace(e.Finished, "$FILES$", FilesDir, -1)
|
||||
exercice.VideoURI = e.VideoURI
|
||||
exercice.VideoURI = strings.Replace(e.VideoURI, "$FILES$", FilesDir, -1)
|
||||
exercice.Resolution = strings.Replace(e.Resolution, "$FILES$", FilesDir, -1)
|
||||
exercice.TotalTries = e.TriedCount()
|
||||
exercice.Gain = int(float64(e.Gain) * e.Coefficient * GlobalScoreCoefficient)
|
||||
|
|
Reference in a new issue