From c7c006bd3d34315ae987b5ca0de620bcca709f3a Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Tue, 21 Mar 2023 19:24:47 +0800 Subject: [PATCH] fix: waitForSubmission http status --- luogu_remote_judger/luogu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luogu_remote_judger/luogu.js b/luogu_remote_judger/luogu.js index 4582aa0..82c1bab 100644 --- a/luogu_remote_judger/luogu.js +++ b/luogu_remote_judger/luogu.js @@ -182,7 +182,7 @@ export default class Luogu { count++; try { - const result = await this.get(`/judge/result?id=${id}`); + const result = await this.get(`/judge/result?id=${id}`).ok((status) => true); if (HTTP_ERROR_MAP[result.status]) { await end({