1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-03-28 14:07:02 +00:00

fix(remote_judger/luogu): add missing <tests> in details

This commit is contained in:
Baoshuo Ren 2023-03-14 06:32:36 +08:00
parent 180484383b
commit d42c2a2c25
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

@ -350,6 +350,8 @@ export default class LuoguProvider implements IBasicProvider {
'</remote-result-table>' +
'</remote-result-container>';
details += '<tests>';
if (data.detail.judgeResult.subtasks.length === 1) {
details += Object.entries(
data.detail.judgeResult.subtasks[0].testCases
@ -376,6 +378,8 @@ export default class LuoguProvider implements IBasicProvider {
.join('\n');
}
details += '</tests>';
return await end({
id: `R${id}`,
status,