core: 仅当记录不同时启用订正模式

pull/156/head
undefined 3 years ago
parent b1f1ceb4c9
commit e1465efcd1

@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.28.19",
"version": "2.28.20",
"bin": "bin/hydrooj.js",
"main": "dist/loader.js",
"typings": "dist/loader.d.ts",

@ -208,7 +208,7 @@ const oi: ContestRule = {
);
for (const pid of tdoc.pids) {
// eslint-disable-next-line @typescript-eslint/no-use-before-define
if (isDone(tdoc)) {
if (isDone(tdoc) && tsddict[pid]?.rid !== psdict[`${tsdoc.uid}/${pid}`]?.rid) {
row.push({
type: 'records',
value: '',

Loading…
Cancel
Save