mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: tos update
This commit is contained in:
1 parent
12b7d7f6cd
commit
813890fc4b
14 files changed
+173
-160
No files matched your search
@@ -8,22 +8,22 @@
|
||||
"dependencies": {
|
||||
"@hydrooj/utils": "workspace:*",
|
||||
"axios": "^0.21.4",
|
||||
"cac": "^6.7.8",
|
||||
"esbuild": "^0.13.4",
|
||||
"cac": "^6.7.11",
|
||||
"esbuild": "^0.13.12",
|
||||
"fs-extra": "^10.0.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
"lodash": "^4.17.21",
|
||||
"mongodb": "^3.7.2",
|
||||
"mongodb": "^3.7.3",
|
||||
"p-queue": "^7.1.0",
|
||||
"shell-quote": "^1.7.2",
|
||||
"shell-quote": "^1.7.3",
|
||||
"ws": "^8.2.3"
|
||||
},
|
||||
"preferUnplugged": true,
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"devDependencies": {
|
||||
"@types/fs-extra": "^9.0.13",
|
||||
"@types/js-yaml": "^4.0.3",
|
||||
"@types/lodash": "^4.14.175",
|
||||
"@types/js-yaml": "^4.0.4",
|
||||
"@types/lodash": "^4.14.176",
|
||||
"@types/shell-quote": "^1.7.1",
|
||||
"@types/ws": "^7.4.7"
|
||||
},
|
||||
|
||||
@@ -140,7 +140,9 @@ class JudgeTask {
|
||||
data.key = 'end';
|
||||
data.rid = new ObjectID(this.request.rid);
|
||||
data.time = data.time_ms ?? data.time;
|
||||
delete data.time_ms;
|
||||
data.memory = data.memory_kb ?? data.memory;
|
||||
delete data.memory_kb;
|
||||
this.ws.send(JSON.stringify(data));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user