mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +08:00
统一PostJudge接口
This commit is contained in:
1 parent
0ee306d0cf
commit
9efcdf9441
9 files changed
+108
-166
No files matched your search
@@ -64,9 +64,9 @@ async function runContest(...arg: Array<any>) {
|
||||
await report({
|
||||
case: {
|
||||
status: STATUS.STATUS_ACCEPTED,
|
||||
judgeText: `Contest ${tdoc.title} finished`,
|
||||
time_ms: new Date().getTime() - start,
|
||||
memory_kb: 0,
|
||||
message: `Contest ${tdoc.title} finished`,
|
||||
time: new Date().getTime() - start,
|
||||
memory: 0,
|
||||
score: 0,
|
||||
},
|
||||
});
|
||||
@@ -115,9 +115,9 @@ export async function run({ domainId }, report: Function) {
|
||||
await report({
|
||||
case: {
|
||||
status: STATUS.STATUS_ACCEPTED,
|
||||
judgeText: `Domain ${domains[i]._id} finished`,
|
||||
time_ms: new Date().getTime() - start,
|
||||
memory_kb: 0,
|
||||
message: `Domain ${domains[i]._id} finished`,
|
||||
time: new Date().getTime() - start,
|
||||
memory: 0,
|
||||
score: 0,
|
||||
},
|
||||
progress: Math.floor(((parseInt(i, 10) + 1) / domains.length) * 100),
|
||||
|
||||
Reference in new issue
Block a user