mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: bug fixes
This commit is contained in:
4 files changed
+37
-28
No files matched your search
@@ -291,9 +291,8 @@ const oi = buildContestRule({
|
||||
continue;
|
||||
}
|
||||
if (!detail[j.pid] || detail[j.pid].score < j.score || this.submitAfterAccept) {
|
||||
detail[j.pid] = j;
|
||||
display[j.pid] ||= {};
|
||||
display[j.pid] = j;
|
||||
detail[j.pid] = { ...j };
|
||||
display[j.pid] = { ...j };
|
||||
}
|
||||
}
|
||||
for (const i in display) {
|
||||
@@ -360,7 +359,7 @@ const oi = buildContestRule({
|
||||
accepted[s.pid] = true;
|
||||
}
|
||||
}
|
||||
const tsddict = (config.lockAt ? tsdoc.display : tsdoc.detail) || {};
|
||||
const tsddict = ((config.lockAt && isLocked(tdoc, new Date())) ? tsdoc.display : tsdoc.detail) || {};
|
||||
for (const pid of tdoc.pids) {
|
||||
const index = `${tsdoc.uid}/${tdoc.domainId}/${pid}`;
|
||||
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
||||
|
||||
Reference in new issue
Block a user