core: training: update

This commit is contained in:
undefined committed 2021-12-31 16:50:29 +08:00
1 parent 41292624ea
commit 60f8d4ce49
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "hydrooj", "name": "hydrooj",
"version": "3.2.38", "version": "3.2.39",
"bin": "bin/hydrooj.js", "bin": "bin/hydrooj.js",
"main": "src/loader", "main": "src/loader",
"module": "src/loader", "module": "src/loader",
+1 -1
View File
@@ -99,7 +99,7 @@ class TrainingDetailHandler extends Handler {
const pids = training.getPids(tdoc.dag); const pids = training.getPids(tdoc.dag);
const [owner, pdict] = await Promise.all([ const [owner, pdict] = await Promise.all([
user.getById(domainId, tdoc.owner), user.getById(domainId, tdoc.owner),
problem.getList(domainId, pids, this.user.hasPerm(PERM.PERM_VIEW_PROBLEM_HIDDEN) || this.user._id), problem.getList(domainId, pids, this.user.hasPerm(PERM.PERM_VIEW_PROBLEM_HIDDEN) || this.user._id, true),
]); ]);
const psdict = await problem.getListStatus(domainId, this.user._id, pids); const psdict = await problem.getListStatus(domainId, this.user._id, pids);
const donePids = new Set<number>(); const donePids = new Set<number>();