From 70ab85f5f4ecdca513bae8c35a333621c773b9a7 Mon Sep 17 00:00:00 2001 From: Menci Date: Mon, 17 Jul 2017 00:46:10 +0800 Subject: [PATCH] Disable custom test --- modules/problem.js | 2 ++ views/problem.ejs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/problem.js b/modules/problem.js index a5d4f83..22ce870 100644 --- a/modules/problem.js +++ b/modules/problem.js @@ -822,6 +822,7 @@ app.get('/problem/:id/statistics/:type', async (req, res) => { } }); +/* app.post('/problem/:id/custom-test', app.multer.fields([{ name: 'code_upload', maxCount: 1 }, { name: 'input_file', maxCount: 1 }]), async (req, res) => { try { let id = parseInt(req.params.id); @@ -878,3 +879,4 @@ app.post('/problem/:id/custom-test', app.multer.fields([{ name: 'code_upload', m }); } }); +*/ diff --git a/views/problem.ejs b/views/problem.ejs index 6a22254..71a25fc 100644 --- a/views/problem.ejs +++ b/views/problem.ejs @@ -333,7 +333,7 @@ div[class*=ace_br] {
-
自定义测试
+
<% } %>