admin: Can import videos

This commit is contained in:
nemunaire 2022-06-12 12:15:39 +02:00
parent dfe62e0b97
commit 223f44572e
7 changed files with 59 additions and 6 deletions

View file

@ -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)