测试:judger封装为模块

This commit is contained in:
undefined committed 2020-05-08 12:28:04 +08:00
1 parent 5d7f57334f
commit 6134a16f8c
8 files changed
+305 -30

No files matched your search

+2 -4
View File
@@ -81,9 +81,8 @@ async function judge(rid) {
const rdoc = await get(rid);
const pdoc = await problem.getById(rdoc.pid);
await task.add({
event: 'judge',
type: 'judge',
rid,
type: 0,
pid: rdoc.pid,
data: pdoc.data,
lang: rdoc.lang,
@@ -96,9 +95,8 @@ async function rejudge(rid) {
const rdoc = await get(rid);
const pdoc = await problem.getById(rdoc.pid);
await task.add({
event: 'judge',
type: 'judge',
rid,
type: 0,
pid: rdoc.pid,
data: pdoc.data,
lang: rdoc.lang,