1
0
mirror of https://github.com/renbaoshuo/UOJ-Luogu-RemoteJudge.git synced 2024-11-23 19:38:42 +00:00

fix: "Judgement Failed"

This commit is contained in:
Baoshuo Ren 2023-03-21 22:03:45 +08:00
parent b60d06a98d
commit 80b578b0fc
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -31,7 +31,7 @@ const STATUS_MAP = [
0, 0,
0, 0,
0, 0,
'Judgment Failed', 'Judgement Failed',
'Accepted', 'Accepted',
0, 0,
'Wrong Answer', // WA 'Wrong Answer', // WA
@ -160,7 +160,7 @@ export default class Luogu {
if (HTTP_ERROR_MAP[result.status]) { if (HTTP_ERROR_MAP[result.status]) {
await end({ await end({
error: true, error: true,
status: 'Judgment Failed', status: 'Judgement Failed',
message: `[Luogu] ${HTTP_ERROR_MAP[result.status]}.`, message: `[Luogu] ${HTTP_ERROR_MAP[result.status]}.`,
}); });
@ -187,7 +187,7 @@ export default class Luogu {
if (HTTP_ERROR_MAP[result.status]) { if (HTTP_ERROR_MAP[result.status]) {
await end({ await end({
error: true, error: true,
status: 'Judgment Failed', status: 'Judgement Failed',
message: `[Luogu] ${HTTP_ERROR_MAP[result.status]}.`, message: `[Luogu] ${HTTP_ERROR_MAP[result.status]}.`,
}); });
@ -207,7 +207,7 @@ export default class Luogu {
return await end({ return await end({
error: true, error: true,
id, id,
status: 'Judgment Failed', status: 'Judgement Failed',
message: 'Failed to fetch submission details.', message: 'Failed to fetch submission details.',
}); });
} }
@ -289,7 +289,7 @@ export default class Luogu {
return await end({ return await end({
error: true, error: true,
id, id,
status: 'Judgment Failed', status: 'Judgement Failed',
message: 'Failed to fetch submission details.', message: 'Failed to fetch submission details.',
}); });
} }
@ -354,7 +354,7 @@ export default class Luogu {
await end({ await end({
error: true, error: true,
status: 'Judgment Failed', status: 'Judgement Failed',
message: e.message, message: e.message,
}); });
} }