mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: fix testlib points message
This commit is contained in:
1 parent
4f4e6f9377
commit
27056c5b69
2 files changed
+2
-2
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/hydrojudge",
|
"name": "@hydrooj/hydrojudge",
|
||||||
"bin": "bin/hydrojudge.js",
|
"bin": "bin/hydrojudge.js",
|
||||||
"version": "2.18.1",
|
"version": "2.18.2",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export function parse(output: string, fullscore: number) {
|
|||||||
if (p === 1) {
|
if (p === 1) {
|
||||||
status = STATUS.STATUS_ACCEPTED;
|
status = STATUS.STATUS_ACCEPTED;
|
||||||
score = fullscore;
|
score = fullscore;
|
||||||
const base = output.split('points ')[1] || '';
|
const base = output.replace('points ', '') || '';
|
||||||
message = base.substring(base.indexOf(' '), 1024);
|
message = base.substring(base.indexOf(' '), 1024);
|
||||||
} else score = Math.floor(fullscore * p);
|
} else score = Math.floor(fullscore * p);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user