From 6559e1a8cd26ccad6d21ec8734f0aefda7167613 Mon Sep 17 00:00:00 2001 From: Ciel Zhao Date: Mon, 6 Nov 2017 15:03:33 +0800 Subject: [PATCH] Fix typo --- modules/contest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/contest.js b/modules/contest.js index 1be0702..cc6d873 100644 --- a/modules/contest.js +++ b/modules/contest.js @@ -498,7 +498,7 @@ app.get('/contest/:id/:pid/download/additional_file', async (req, res) => { let problem = await Problem.fromID(problem_id); contest.ended = contest.isEnded(); - if (!(contest.isRunning() || contest.idEnded())) { + if (!(contest.isRunning() || contest.isEnded())) { if (await problem.isAllowedUseBy(res.locals.user)) { return res.redirect(syzoj.utils.makeUrl(['problem', problem_id, 'download', 'additional_file'])); }