Browse Source

Disable custom test

master
Menci 7 years ago
parent
commit
70ab85f5f4
  1. 2
      modules/problem.js
  2. 2
      views/problem.ejs

2
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
});
}
});
*/

2
views/problem.ejs

@ -333,7 +333,7 @@ div[class*=ace_br] {
</div>
<div class="ui center aligned vertical segment" style="padding-bottom: 0; ">
<button type="submit" class="ui button">提交</button>
<div onclick="show_custom_test()" class="ui positive button">自定义测试</div>
<!--div onclick="show_custom_test()" class="ui positive button">自定义测试</div-->
</div>
<% } %>
</form>

Loading…
Cancel
Save