core&ui: pretest support for remote_judge

This commit is contained in:
undefined committed 2022-02-13 18:07:56 +08:00
1 parent 3762bb31f5
commit af994325b5
7 files changed
+16 -7

No files matched your search

+1 -1
View File
@@ -75,7 +75,7 @@ class RecordModel {
source = `${pdoc.domainId}/${pdoc.docId}`;
data = pdoc.data;
if (typeof pdoc.config === 'string') throw new Error(pdoc.config);
if (pdoc.config.type === 'remote_judge') {
if (pdoc.config.type === 'remote_judge' && rdoc.contest.toHexString() !== '0'.repeat(24)) {
return await task.add({
...omit(rdoc, ['_id']),
priority,