mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: fix checkFIle impl
This commit is contained in:
1 parent
8e68670de2
commit
ba3c6bb235
6 files changed
+7
-8
No files matched your search
@@ -171,9 +171,8 @@ const page = new NamedPage('problem_config', () => {
|
||||
}
|
||||
if (state.config.subtasks) return;
|
||||
const testdata = (state.testdata || []).map((i) => i.name);
|
||||
const checkFile = (file: string) => (testdata.includes(file) ? file : null);
|
||||
unsubscribe();
|
||||
const subtasks = readSubtasksFromFiles(testdata, checkFile, state.config);
|
||||
const subtasks = readSubtasksFromFiles(testdata, state.config);
|
||||
store.dispatch({
|
||||
type: 'CONFIG_AUTOCASES_UPDATE',
|
||||
subtasks: normalizeSubtasks(subtasks, (i) => i, state.config.time, state.config.memory, true),
|
||||
|
||||
Reference in new issue
Block a user