bump version

This commit is contained in:
undefined committed 2023-03-23 16:07:53 +08:00
1 parent efcbac146d
commit f79b8ab0c0
9 files changed
+30 -26

No files matched your search

+4 -2
View File
@@ -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;
}
+1 -1
View File
@@ -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;