mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
vjudge: update codeforces handle
This commit is contained in:
1 parent
9a8557d215
commit
4e7c3077f9
3 files changed
+24
-8
No files matched your search
@@ -23,7 +23,7 @@ class Service {
|
||||
this.api = new Provider(account, async (data) => {
|
||||
await coll.updateOne({ _id: account._id }, { $set: data });
|
||||
});
|
||||
this.main();
|
||||
this.main().catch((e) => logger.error(`Error occured in ${account.type}/${account.handle}`, e));
|
||||
}
|
||||
|
||||
async judge(task) {
|
||||
@@ -36,6 +36,7 @@ class Service {
|
||||
await next({ status: STATUS.STATUS_JUDGING, message: `ID = ${rid}` });
|
||||
await this.api.waitForSubmission(rid, next, end);
|
||||
} catch (e) {
|
||||
if (process.env.DEV) logger.error(e);
|
||||
end({ status: STATUS.STATUS_SYSTEM_ERROR, message: e.message });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user