mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: fix broken scoreboard link
This commit is contained in:
1 parent
72b46857ba
commit
585d8aa2e1
3 files changed
+7
-10
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.28.12",
|
||||
"version": "2.28.13",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "dist/loader.js",
|
||||
"typings": "dist/loader.d.ts",
|
||||
|
||||
@@ -26,12 +26,9 @@ async function _postJudge(rdoc: RecordDoc) {
|
||||
const updated = await problem.updateStatus(rdoc.pdomain, rdoc.pid, rdoc.uid, rdoc._id, rdoc.status, rdoc.score);
|
||||
if (rdoc.contest) {
|
||||
await contest.updateStatus(
|
||||
rdoc.domainId, rdoc.contest.tid, rdoc.uid,
|
||||
rdoc._id, rdoc.pid, accept, rdoc.score, rdoc.contest.type,
|
||||
);
|
||||
await contest.updateStatus(
|
||||
rdoc.domainId, rdoc.contest.tid, rdoc.uid,
|
||||
rdoc._id, `${rdoc.pdomain}:${rdoc.pid}`, accept, rdoc.score, rdoc.contest.type,
|
||||
rdoc.domainId, rdoc.contest.tid, rdoc.uid, rdoc._id,
|
||||
rdoc.domainId === rdoc.pdomain ? rdoc.pid : `${rdoc.pdomain}:${rdoc.pid}`,
|
||||
accept, rdoc.score, rdoc.contest.type,
|
||||
);
|
||||
} else if (accept && updated) await domain.incUserInDomain(rdoc.domainId, rdoc.uid, 'nAccept', 1);
|
||||
const pdoc = (accept && updated)
|
||||
|
||||
@@ -88,7 +88,7 @@ const acm: ContestRule = {
|
||||
columns.push({
|
||||
type: 'problem_detail',
|
||||
value: '#{0}'.format(i),
|
||||
raw: pid,
|
||||
raw: (i + 9).toString(36).toUpperCase(),
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -171,7 +171,7 @@ const oi: ContestRule = {
|
||||
columns.push({
|
||||
type: 'problem_detail',
|
||||
value: '#{0}'.format(i),
|
||||
raw: tdoc.pids[i - 1],
|
||||
raw: (i + 9).toString(36).toUpperCase(),
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -336,7 +336,7 @@ const homework: ContestRule = {
|
||||
columns.push({
|
||||
type: 'problem_detail',
|
||||
value: '#{0}'.format(i),
|
||||
raw: pid,
|
||||
raw: (i + 9).toString(36).toUpperCase(),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user