mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: scoreboard display fix
This commit is contained in:
1 parent
f6f714756b
commit
4ff44e97d1
2 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.29.16",
|
||||
"version": "2.29.17",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "dist/loader.js",
|
||||
"typings": "dist/loader.d.ts",
|
||||
|
||||
@@ -199,7 +199,7 @@ const oi: ContestRule = {
|
||||
pdomain = pid.split(':')[0];
|
||||
pid = +pid.split(':')[1];
|
||||
}
|
||||
return problem.getMultiStatus(pdomain, { uid: { $in: uids } }).toArray();
|
||||
return problem.getMultiStatus(pdomain, { docId: pid, uid: { $in: uids } }).toArray();
|
||||
}),
|
||||
);
|
||||
for (const tpsdoc of psdocs) {
|
||||
@@ -222,7 +222,7 @@ const oi: ContestRule = {
|
||||
);
|
||||
for (const pid of tdoc.pids) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
||||
if (isDone(tdoc) && tsddict[pid]?.rid !== psdict[`${tsdoc.uid}/${pid}`]?.rid) {
|
||||
if (isDone(tdoc) && tsddict[pid]?.rid?.toHexString() !== psdict[`${tsdoc.uid}/${pid}`]?.rid?.toHexString()) {
|
||||
row.push({
|
||||
type: 'records',
|
||||
value: '',
|
||||
|
||||
Reference in new issue
Block a user