Browse Source

Redirect to contest page after submit from contest

master
Menci 8 years ago
parent
commit
3dbd29135a
  1. 4
      modules/problem.js

4
modules/problem.js

@ -241,7 +241,11 @@ app.post('/submit/:id', async (req, res) => {
await waiting_judge.save();
if (contest_id) {
res.redirect(syzoj.utils.makeUrl(['contest', contest_id]));
} else {
res.redirect(syzoj.utils.makeUrl(['judge_detail', judge_state.id]));
}
} catch (e) {
syzoj.log(e);
res.render('error', {

Loading…
Cancel
Save