mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: skip analysis for rejudged submissions
This commit is contained in:
1 parent
2bd1e522d4
commit
91fc14f010
4 files changed
+4
-1
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.22.12",
|
"version": "2.22.13",
|
||||||
"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",
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ function judgeCase(c: NormalizedCase, sid: string) {
|
|||||||
},
|
},
|
||||||
addProgress: 100 / ctx.config.count,
|
addProgress: 100 / ctx.config.count,
|
||||||
});
|
});
|
||||||
|
if (ctx.request.rejudged) return; // Skip analysis for rejudged submissions
|
||||||
if ([STATUS.STATUS_WRONG_ANSWER, STATUS.STATUS_RUNTIME_ERROR].includes(status)) {
|
if ([STATUS.STATUS_WRONG_ANSWER, STATUS.STATUS_RUNTIME_ERROR].includes(status)) {
|
||||||
const langConfig = ctx.getLang(ctx.lang);
|
const langConfig = ctx.getLang(ctx.lang);
|
||||||
if (langConfig.analysis && !ctx.analysis) {
|
if (langConfig.analysis && !ctx.analysis) {
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ export interface JudgeTaskInterface {
|
|||||||
clean: Function[];
|
clean: Function[];
|
||||||
config: Config;
|
config: Config;
|
||||||
env?: Record<string, string>;
|
env?: Record<string, string>;
|
||||||
|
request: Record<string, any>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RuntimeContext {
|
export interface RuntimeContext {
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ async function stackSize() {
|
|||||||
try {
|
try {
|
||||||
const context: Context = {
|
const context: Context = {
|
||||||
lang: 'cc',
|
lang: 'cc',
|
||||||
|
request: {},
|
||||||
code: {
|
code: {
|
||||||
content: `#include <iostream>
|
content: `#include <iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|||||||
Reference in new issue
Block a user