| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Loader: | 2 * Loader: |
| 3 * Reads GM result reports written out by results_loader.py, and imports | 3 * Reads GM result reports written out by results.py, and imports |
| 4 * their data into $scope.results . | 4 * them into $scope.categories and $scope.testData . |
| 5 */ | 5 */ |
| 6 var Loader = angular.module( | 6 var Loader = angular.module( |
| 7 'Loader', | 7 'Loader', |
| 8 [] | 8 [] |
| 9 ); | 9 ); |
| 10 Loader.controller( | 10 Loader.controller( |
| 11 'Loader.Controller', | 11 'Loader.Controller', |
| 12 function($scope, $http) { | 12 function($scope, $http) { |
| 13 $http.get("/results/all").then( | 13 $http.get("/results/all").then( |
| 14 function(response) { | 14 function(response) { |
| 15 $scope.results = response.data; | 15 $scope.categories = response.data.categories; |
| 16 $scope.testData = response.data.testData; |
| 16 $scope.sortColumn = 'test'; | 17 $scope.sortColumn = 'test'; |
| 17 } | 18 } |
| 18 ); | 19 ); |
| 19 } | 20 } |
| 20 ); | 21 ); |
| OLD | NEW |