fix(remote_judger/luogu): add missing <tests> in details
All checks were successful
continuous-integration/drone/push Build is passing

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

View File

@ -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,