core: rating: fix contest

This commit is contained in:
undefined committed 2021-10-10 19:19:02 +08:00
1 parent 4dee614d7c
commit 00438b69b5
3 files changed
+2 -5

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.39.13",
"version": "2.39.14",
"bin": "bin/hydrooj.js",
"main": "src/loader",
"module": "src/loader",
+1 -1
View File
@@ -53,7 +53,7 @@ async function runContest(...arg: any[]) {
: arg[0];
const udict: ND = (typeof arg[0] === 'string') ? arg[2] : arg[1];
const report = (typeof arg[0] === 'string') ? arg[3] : arg[2];
const cursor = contest.getMultiStatus(tdoc.domainId, tdoc.docId)
const cursor = contest.getMultiStatus(tdoc.domainId, { docId: tdoc.docId, journal: { $ne: null } })
.sort(contest.RULES[tdoc.rule].statusSort);
if (!await cursor.count()) return;
const rankedTsdocs = await contest.RULES[tdoc.rule].ranked(tdoc, cursor);
-3
View File
@@ -44,9 +44,6 @@ const tasks = {
num_submit: 'nSubmit',
num_accept: 'nAccept',
difficulty: 'difficulty',
difficulty_admin: null,
difficulty_algo: 'difficultyAlgo',
difficulty_setting: 'difficultySetting',
pname: 'pid',
title: 'title',
content: 'content',