Переглянути джерело

AutoEval: removed the request for teacher test cases and return -5 for FeedbackConvention

Igor 4 роки тому
батько
коміт
f8b365be4a
1 змінених файлів з 21 додано та 24 видалено
  1. 21 24
      js/iassign-integration-functions.js

+ 21 - 24
js/iassign-integration-functions.js

@@ -742,33 +742,30 @@ function full_screen() {
 
 function teacherAutoEval (data) {
   previousContent = data;
-  //$.get(iLMparameters.iLM_PARAM_TeacherAutoEval, function (originalData) {
-    // Ver arquivo js/util/iassignHelpers.js
-    var content = ivprogCore.prepareActivityToStudentHelper(data).getOrElse(null);
-    if(!content) {
-      showInvalidData();
-      return;
-    }
-    // Casos de testes agora são delegados ao tratamento apropriado pela função acima
-    // var testCases = content.testcases;
-    settingsProgrammingTypes = content.settingsProgrammingType;
-    settingsDataTypes = content.settingsDataTypes;
-    settingsCommands = content.settingsCommands;
-    settingsFunctions = content.settingsFunctions;
-    settingsFilter = content.settingsFilter;
+  // Ver arquivo js/util/iassignHelpers.js
+  var content = ivprogCore.prepareActivityToStudentHelper(data).getOrElse(null);
+  if(!content) {
+    showInvalidData();
+    return;
+  }
+  // Casos de testes agora são delegados ao tratamento apropriado pela função acima
+  // var testCases = content.testcases;
+  settingsProgrammingTypes = content.settingsProgrammingType;
+  settingsDataTypes = content.settingsDataTypes;
+  settingsCommands = content.settingsCommands;
+  settingsFunctions = content.settingsFunctions;
+  settingsFilter = content.settingsFilter;
 
-    if (content.algorithmInIlm != null) {
-      algorithm_in_ilm = content.algorithmInIlm;
-      parsePreviousAlgorithm();
-      //ivprogCore.autoEval(originalData, displayGrade);
-    }
+  if (content.algorithmInIlm != null) {
+    algorithm_in_ilm = content.algorithmInIlm;
+    parsePreviousAlgorithm();
+  }
 
-    ivprogTextualOrVisual();
-    if (settingsFilter && settingsFilter[0]) {
+  ivprogTextualOrVisual();
+  if (settingsFilter && settingsFilter[0]) {
 
-      blockAllEditingOptions(); 
-    }
-  //});
+    blockAllEditingOptions(); 
+  }
 }
 
 function displayGrade(grade) {