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

+3 -1
View File
@@ -328,7 +328,9 @@ export class ContestCodeHandler extends Handler {
const rnames = {};
for (const tsdoc of tsdocs) {
for (const pid in tsdoc.detail || {}) {
rnames[tsdoc.detail[pid].rid] = `U${tsdoc.uid}_P${pid}_R${tsdoc.detail[pid].rid}`;
let name = `U${tsdoc.uid}_P${pid}_R${tsdoc.detail[pid].rid}`;
if (typeof tsdoc.detail[pid].score === 'number') name += `_S${tsdoc.detail[pid].status}@${tsdoc.detail[pid].score}`;
rnames[tsdoc.detail[pid].rid] = name;
}
}
const zip = new AdmZip();