Skip to content

Commit

Permalink
core: contest.acm: ignore problems that are not in contest
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined-moe committed Nov 23, 2024
1 parent e00fa9e commit 92499d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/hydrooj/src/model/contest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const acm = buildContestRule({
// eslint-disable-next-line @typescript-eslint/no-use-before-define
const lockAt = isLocked(tdoc) ? tdoc.lockAt : null;
for (const j of journal) {
if (!tdoc.pids.includes(j.pid)) continue;
if (!this.submitAfterAccept && display[j.pid]?.status === STATUS.STATUS_ACCEPTED) continue;
if (![STATUS.STATUS_ACCEPTED, STATUS.STATUS_COMPILE_ERROR, STATUS.STATUS_FORMAT_ERROR].includes(j.status)) {
naccept[j.pid]++;
Expand Down

0 comments on commit 92499d4

Please sign in to comment.