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",
"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",
+1 -15
View File
@@ -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);