mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
bug fixes
This commit is contained in:
9 files changed
+51
-25
No files matched your search
@@ -388,7 +388,7 @@ const oi = buildContestRule({
|
||||
score: tsddict[pid]?.score,
|
||||
};
|
||||
if (tsddict[pid]?.status === STATUS.STATUS_ACCEPTED) {
|
||||
if (tsddict[pid].rid.getTimestamp().getTime() - (tsdoc.startAt.getTime() || tdoc.beginAt.getTime())) {
|
||||
if (tsddict[pid].rid.getTimestamp().getTime() - (tsdoc.startAt || tdoc.beginAt).getTime() === meta?.first?.[pid]) {
|
||||
node.style = 'background-color: rgb(217, 240, 199);';
|
||||
}
|
||||
}
|
||||
@@ -403,9 +403,9 @@ const oi = buildContestRule({
|
||||
const psdict = {};
|
||||
const first = {};
|
||||
for (const [, tsdoc] of rankedTsdocs) {
|
||||
for (const [pid, detail] of Object.entries(tsdoc.detail)) {
|
||||
for (const [pid, detail] of Object.entries(tsdoc.detail || {})) {
|
||||
if (detail.status !== STATUS.STATUS_ACCEPTED) continue;
|
||||
const time = detail.rid.getTimestamp().getTime() - (tsdoc.startAt.getTime() || tdoc.beginAt.getTime());
|
||||
const time = detail.rid.getTimestamp().getTime() - (tsdoc.startAt || tdoc.beginAt).getTime();
|
||||
if (!first[pid] || first[pid] > time) first[pid] = time;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user