Skip to content

Commit f4625b0

Browse files
author
Martin Krulis
committed
Fixing bug in exercise simple config (cannot set custom judge for data-only exercises).
1 parent a82e183 commit f4625b0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/helpers/exercise/configSimple.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ const _PIPELINE_DEFAULT_VARS_DESCRIPTORS = [
266266
.setInitialPostprocess(({ 'custom-judge': customJudge }) => {
267267
const res = { 'custom-judge': customJudge, useCustomJudge: Boolean(customJudge) };
268268
if (customJudge) {
269-
res['judge-type'] = ''; // custom-judge descriptor must be defined after judgee-type, so this override will work !!!
269+
res['judge-type'] = ''; // custom-judge descriptor must be defined after judge-type, so this override will work !!!
270270
}
271271
return res;
272272
})
@@ -290,9 +290,7 @@ const _ENV_SPECIFIC_VARS_DESCRIPTORS = {
290290
[ENV_DATA_ONLY_ID]: [
291291
new FileListVariable('input-files', 'actual-inputs'),
292292
new Variable('run-args', 'string[]'),
293-
new Variable('custom-judge', 'remote-file').setTransformPostprocess((value, formDataTest) =>
294-
formDataTest.useCustomJudge ? value : ''
295-
),
293+
new Variable('custom-judge', 'remote-file'),
296294
],
297295
};
298296

0 commit comments

Comments
 (0)