core&judge&ui: hack submission

This commit is contained in:
undefined committed 2022-09-06 13:02:46 +08:00
1 parent 07ab4f1bbd
commit 4e0c9bb00a
17 files changed
+256 -128

No files matched your search

-3
View File
@@ -1,6 +1,5 @@
/* eslint-disable no-await-in-loop */
import { sleep } from '@hydrooj/utils/lib/utils';
import { writeFileSync } from 'fs-extra';
import * as Judge from 'hydrooj/src/handler/judge';
import { Logger } from 'hydrooj/src/logger';
import { STATUS } from 'hydrooj/src/model/builtin';
@@ -56,8 +55,6 @@ class Service {
async sync(domainId: string, resync = false, list: string) {
let page = 1;
const res = await this.api.getProblem('P1721D', {});
writeFileSync('a.md', res.content);
let pids = await this.api.listProblem(page, resync, list);
while (pids.length) {
logger.info(`${domainId}: Syncing page ${page}`);