ui: add score range display

This commit is contained in:
undefined committed 2021-05-17 02:33:46 +08:00
1 parent 3f5d456d32
commit ec83da1080
6 files changed
+54 -31

No files matched your search

+1
View File
@@ -39,6 +39,7 @@ async function _postJudge(rdoc: RecordDoc) {
record.update(rdoc.domainId, rdoc._id, { effective: true }),
problem.edit(pdoc.domainId, pdoc.docId, { difficulty }),
problem.inc(pdoc.domainId, pdoc.docId, `stats.${builtin.STATUS_SHORT_TEXTS[rdoc.status]}`, 1),
problem.inc(pdoc.domainId, pdoc.docId, `stats.s${rdoc.score}`, 1),
]);
await bus.serial('record/judge', rdoc, updated);
}