Browse Source

Disable custom test

pull/6/head
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) => { app.post('/problem/:id/custom-test', app.multer.fields([{ name: 'code_upload', maxCount: 1 }, { name: 'input_file', maxCount: 1 }]), async (req, res) => {
try { try {
let id = parseInt(req.params.id); 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>
<div class="ui center aligned vertical segment" style="padding-bottom: 0; "> <div class="ui center aligned vertical segment" style="padding-bottom: 0; ">
<button type="submit" class="ui button">提交</button> <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> </div>
<% } %> <% } %>
</form> </form>

Loading…
Cancel
Save