judge: skip analysis for rejudged submissions

This commit is contained in:
undefined committed 2022-08-25 15:49:29 +08:00
1 parent 2bd1e522d4
commit 91fc14f010
4 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -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",
+1
View File
@@ -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 {
+1
View File
@@ -15,6 +15,7 @@ async function stackSize() {
try {
const context: Context = {
lang: 'cc',
request: {},
code: {
content: `#include <iostream>
using namespace std;