mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +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",
|
||||
"bin": "bin/hydrojudge.js",
|
||||
"version": "2.22.12",
|
||||
"version": "2.22.13",
|
||||
"main": "package.json",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
@@ -111,6 +111,7 @@ function judgeCase(c: NormalizedCase, sid: string) {
|
||||
},
|
||||
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)) {
|
||||
const langConfig = ctx.getLang(ctx.lang);
|
||||
if (langConfig.analysis && !ctx.analysis) {
|
||||
|
||||
@@ -20,6 +20,7 @@ export interface JudgeTaskInterface {
|
||||
clean: Function[];
|
||||
config: Config;
|
||||
env?: Record<string, string>;
|
||||
request: Record<string, any>;
|
||||
}
|
||||
|
||||
export interface RuntimeContext {
|
||||
|
||||
@@ -15,6 +15,7 @@ async function stackSize() {
|
||||
try {
|
||||
const context: Context = {
|
||||
lang: 'cc',
|
||||
request: {},
|
||||
code: {
|
||||
content: `#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
Reference in new issue
Block a user