judge: fix

This commit is contained in:
undefined committed 2024-01-28 09:02:22 +08:00
1 parent 3a87afbe6f
commit 03285b4b52
2 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -150,11 +150,10 @@ export default class Hydro implements Session {
}
send(rid: string, key: 'next' | 'end', data: Partial<JudgeResultBody>) {
data.key = key;
if (data.case && typeof data.case.message === 'string') data.case.message = removeNixPath(data.case.message);
if (typeof data.message === 'string') data.message = removeNixPath(data.message);
if (typeof data.compilerText === 'string') data.compilerText = removeNixPath(data.compilerText);
this.ws.send(JSON.stringify(data));
this.ws.send(JSON.stringify({ ...data, rid, key }));
}
getNext(t: JudgeTask) {