squash! WIP: apply a coeff on given points

This commit is contained in:
nemunaire 2017-01-15 23:40:58 +01:00
commit 6d5ded2c3b
6 changed files with 29 additions and 24 deletions

View file

@ -30,6 +30,7 @@ func genStats() (interface{}, error) {
exos[fmt.Sprintf("%d", exercice.Id)] = fic.ExportedExercice{
exercice.Title,
exercice.Gain,
exercice.Coefficient,
exercice.SolvedCount(),
exercice.TriedTeamCount(),
}

View file

@ -275,7 +275,7 @@ angular.module("FICApp")
$scope.exercice = Exercice.get({ exerciceId: $routeParams.exerciceId });
}
$scope.exercices = Exercice.query();
$scope.fields = ["title", "statement", "depend", "gain", "videoURI"];
$scope.fields = ["title", "statement", "depend", "gain", "coefficient", "videoURI"];
$scope.saveExercice = function() {
if (this.exercice.id) {