mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
bump version
This commit is contained in:
9 files changed
+30
-26
No files matched your search
@@ -109,8 +109,8 @@ class AccountService {
|
||||
const res = await this.login();
|
||||
if (!res) return;
|
||||
setInterval(() => this.login(), Time.hour);
|
||||
TaskModel.consume({ type: 'remotejudge', subType: this.account.type }, this.judge.bind(this), false);
|
||||
const ddocs = await DomainModel.getMulti({ mount: this.account.type }).toArray();
|
||||
TaskModel.consume({ type: 'remotejudge', subType: this.account.type.split('.')[0] }, this.judge.bind(this), false);
|
||||
const ddocs = await DomainModel.getMulti({ mount: this.account.type.split('.')[0] }).toArray();
|
||||
do {
|
||||
this.listUpdated = false;
|
||||
for (const listName of this.problemLists) {
|
||||
@@ -173,8 +173,10 @@ export async function apply(ctx: Context) {
|
||||
if (process.env.HYDRO_CLI) return;
|
||||
const vjudge = new VJudgeService(ctx);
|
||||
await vjudge.start();
|
||||
// ctx.on('app/started', () => {
|
||||
for (const [k, v] of Object.entries(providers)) {
|
||||
vjudge.addProvider(k, v);
|
||||
}
|
||||
// });
|
||||
ctx.vjudge = vjudge;
|
||||
}
|
||||
@@ -9,6 +9,6 @@ import spoj from './spoj';
|
||||
import uoj from './uoj';
|
||||
|
||||
const vjudge: Record<string, any> = {
|
||||
codeforces, csgoj, luogu, poj, spoj, uoj, hustoj, bzoj, xjoi, ybt,
|
||||
codeforces, csgoj, 'luogu.legacy': luogu, poj, spoj, uoj, hustoj, bzoj, xjoi, ybt,
|
||||
};
|
||||
export default vjudge;
|
||||
Reference in new issue
Block a user