judge: fix testdata sync

This commit is contained in:
undefined committed 2021-01-03 18:00:21 +08:00
1 parent 5589b7dabe
commit c89ef43a88
2 files changed
+2 -16

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "@hydrooj/hydrojudge", "name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js", "bin": "bin/hydrojudge.js",
"version": "2.2.0", "version": "2.2.1",
"main": "package.json", "main": "package.json",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"repository": "https://github.com/hydro-dev/Hydro.git", "repository": "https://github.com/hydro-dev/Hydro.git",
+1 -15
View File
@@ -138,33 +138,19 @@ async function postInit() {
class JudgeTask { class JudgeTask {
stat: any; stat: any;
request: any; request: any;
event: string; event: string;
pid: string; pid: string;
rid: string; rid: string;
domainId: string; domainId: string;
lang: string; lang: string;
code: string; code: string;
data: any[]; data: any[];
config: any; config: any;
next: (data: any, id?: number) => void; next: (data: any, id?: number) => void;
end: (data: any) => void; end: (data: any) => void;
tmpdir: string; tmpdir: string;
clean: any[]; clean: any[];
folder: string; folder: string;
constructor(request) { constructor(request) {
@@ -182,7 +168,7 @@ async function postInit() {
this.domainId = this.request.domainId; this.domainId = this.request.domainId;
this.lang = this.request.lang; this.lang = this.request.lang;
this.code = this.request.code; this.code = this.request.code;
this.data = (this.request.data || '').toString(); this.data = this.request.data;
this.config = this.request.config; this.config = this.request.config;
this.next = getNext(this); this.next = getNext(this);
this.end = getEnd(this.domainId, this.rid); this.end = getEnd(this.domainId, this.rid);