We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b32fc5c commit c150e67Copy full SHA for c150e67
webapp/src/Service/ImportProblemService.php
@@ -286,6 +286,11 @@ public function importZippedProblem(
286
$yamlProblemProperties['typesAsString'] = ['pass-fail'];
287
}
288
289
+ if (!in_array('pass-fail', $yamlProblemProperties['typesAsString']) &&
290
+ !in_array('scoring', $yamlProblemProperties['typesAsString'])) {
291
+ $yamlProblemProperties['typesAsString'][] = 'pass-fail';
292
+ }
293
+
294
if (isset($yamlData['validator_flags'])) {
295
$yamlProblemProperties['special_compare_args'] = $yamlData['validator_flags'];
296
0 commit comments