diff --git a/frontend/static/js/challenge.js b/frontend/static/js/challenge.js index 40071fab..e6b576b4 100644 --- a/frontend/static/js/challenge.js +++ b/frontend/static/js/challenge.js @@ -342,6 +342,10 @@ angular.module("FICApp", ["ngRoute", "ngSanitize"]) data.exercices[eid].timeouted = true; if ($scope.my && $scope.my.exercices[eid] && $scope.my.exercices[eid].solved !== undefined) data.exercices[eid].solved = $scope.my.exercices[eid].solved; + if ($scope.my && $scope.my.exercices[eid] && $scope.my.exercices[eid].solved_time !== undefined && data.exercices[eid].solved_time === undefined) + data.exercices[eid].solved_time = $scope.my.exercices[eid].solved_time; + if ($scope.my && $scope.my.exercices[eid] && $scope.my.exercices[eid].tries !== undefined && data.exercices[eid].tries === undefined) + data.exercices[eid].tries = $scope.my.exercices[eid].tries; angular.forEach(exercice.flags, function(flag, fid) { if ($scope.my && $scope.my.exercices[eid] && $scope.my.exercices[eid].flags && $scope.my.exercices[eid].flags[fid] && $scope.my.exercices[eid].flags[fid].found !== undefined) data.exercices[eid].flags[fid].found = $scope.my.exercices[eid].flags[fid].found;