mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
judge: fix testdata sync
This commit is contained in:
1 parent
5589b7dabe
commit
c89ef43a88
2 files changed
+2
-16
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@hydrooj/hydrojudge",
|
||||
"bin": "bin/hydrojudge.js",
|
||||
"version": "2.2.0",
|
||||
"version": "2.2.1",
|
||||
"main": "package.json",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
@@ -138,33 +138,19 @@ async function postInit() {
|
||||
|
||||
class JudgeTask {
|
||||
stat: any;
|
||||
|
||||
request: any;
|
||||
|
||||
event: string;
|
||||
|
||||
pid: string;
|
||||
|
||||
rid: string;
|
||||
|
||||
domainId: string;
|
||||
|
||||
lang: string;
|
||||
|
||||
code: string;
|
||||
|
||||
data: any[];
|
||||
|
||||
config: any;
|
||||
|
||||
next: (data: any, id?: number) => void;
|
||||
|
||||
end: (data: any) => void;
|
||||
|
||||
tmpdir: string;
|
||||
|
||||
clean: any[];
|
||||
|
||||
folder: string;
|
||||
|
||||
constructor(request) {
|
||||
@@ -182,7 +168,7 @@ async function postInit() {
|
||||
this.domainId = this.request.domainId;
|
||||
this.lang = this.request.lang;
|
||||
this.code = this.request.code;
|
||||
this.data = (this.request.data || '').toString();
|
||||
this.data = this.request.data;
|
||||
this.config = this.request.config;
|
||||
this.next = getNext(this);
|
||||
this.end = getEnd(this.domainId, this.rid);
|
||||
|
||||
Reference in new issue
Block a user