mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
vjudge: poj: trim status
This commit is contained in:
1 parent
55d9d41265
commit
9f378226c9
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/vjudge",
|
||||
"version": "1.4.3",
|
||||
"version": "1.4.4",
|
||||
"description": "Submit problems to remote oj",
|
||||
"main": "package.json",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
@@ -234,7 +234,7 @@ export default class POJProvider implements IBasicProvider {
|
||||
const { text } = await this.get(`/status?top=${+id + 1}`);
|
||||
const { window: { document } } = new JSDOM(text);
|
||||
const submission = document.querySelector('.a>tbody>tr[align="center"]');
|
||||
const status = VERDICT[submission.children[3].children[0].textContent.toUpperCase()]
|
||||
const status = VERDICT[submission.children[3].children[0].textContent.trim().toUpperCase()]
|
||||
|| STATUS.STATUS_SYSTEM_ERROR;
|
||||
if (status === STATUS.STATUS_JUDGING) continue;
|
||||
if (status === STATUS.STATUS_COMPILE_ERROR) {
|
||||
|
||||
Reference in new issue
Block a user