judge: skip analysis for rejudged submissions

pull/420/head
undefined 2 years ago
parent 2bd1e522d4
commit 91fc14f010

@ -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;

Loading…
Cancel
Save