mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&judge&ui: hack submission
This commit is contained in:
1 parent
07ab4f1bbd
commit
4e0c9bb00a
17 files changed
+256
-128
No files matched your search
@@ -110,7 +110,7 @@ class SystemScriptHandler extends SystemHandler {
|
||||
logger.warn('You are using the legacy script validation API, which will be dropped in the future.');
|
||||
validate(global.Hydro.script[id].validate, args);
|
||||
}
|
||||
const rid = await record.add(domainId, -1, this.user._id, '-', id, false, raw);
|
||||
const rid = await record.add(domainId, -1, this.user._id, '-', id, false, { input: raw, type: 'pretest' });
|
||||
const report = (data) => judge.next({ domainId, rid, ...data });
|
||||
report({ message: `Running script: ${id} `, status: STATUS.STATUS_JUDGING });
|
||||
const start = Date.now();
|
||||
|
||||
Reference in new issue
Block a user