Merge branch 'master' into contest-problemlist

This commit is contained in:
undefined committed 2022-10-18 16:56:18 +08:00
commit 58c0cade0e
28 files changed
+304 -187

No files matched your search

+1 -4
View File
@@ -100,10 +100,7 @@ class RecordListHandler extends ContestDetailBaseHandler {
filterStatus: status,
};
if (this.user.hasPriv(PRIV.PRIV_VIEW_JUDGE_STATISTICS) && !full) {
this.response.body.statistics = {
...await record.stat(all ? undefined : domainId),
delay: await TaskModel.getDelay({ type: 'judge' }),
};
this.response.body.statistics = await record.stat(all ? undefined : domainId);
}
}
}