vjudge: luogu: progress report

This commit is contained in:
undefined committed 2021-10-16 15:38:32 +08:00
1 parent c8ec439b96
commit d8bfbb0a22
3 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ class Service {
try {
const rid = await this.api.submitProblem(task.target, task.lang, task.code, task, next, end);
if (!rid) return;
await next({ status: STATUS.STATUS_JUDGING });
await next({ status: STATUS.STATUS_JUDGING, message: `ID = ${rid}` });
await this.api.waitForSubmission(rid, next, end);
} catch (e) {
end({ status: STATUS.STATUS_SYSTEM_ERROR, message: e.message });