mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&judge&ui: hack submission
This commit is contained in:
1 parent
07ab4f1bbd
commit
4e0c9bb00a
17 files changed
+256
-128
No files matched your search
@@ -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}`);
|
||||
|
||||
Reference in new issue
Block a user