Browse Source

Fix wrong answer size for submit answer problem's submissions

master
Menci 6 years ago
parent
commit
48f28a79c3
  1. 2
      modules/submission.js

2
modules/submission.js

@ -100,7 +100,7 @@ app.get('/submissions', async (req, res) => {
await judge_state.forEachAsync(async obj => {
await obj.loadRelationships();
obj.code_length = obj.code.length;
if (obj.problem.type !== 'submit-answer') obj.code_length = obj.code.length;
})
res.render('submissions', {

Loading…
Cancel
Save