mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui: pretest support for remote_judge
This commit is contained in:
1 parent
3762bb31f5
commit
af994325b5
7 files changed
+16
-7
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user