From 05c5fa057dcd885191cb504db72cff10fef80ee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E5=9C=A3=E6=9D=B0?= <32413588+dblark@users.noreply.github.com> Date: Wed, 3 Apr 2019 06:59:15 +0800 Subject: [PATCH] Fix have_additional_file always true --- modules/problem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/problem.js b/modules/problem.js index bc5d60b..d93cec2 100644 --- a/modules/problem.js +++ b/modules/problem.js @@ -257,7 +257,7 @@ app.get('/problem/:id/export', async (req, res) => { limit_and_hint: problem.limit_and_hint, time_limit: problem.time_limit, memory_limit: problem.memory_limit, - have_additional_file: problem.additional_file_id !== null, + have_additional_file: problem.additional_file_id != null, file_io: problem.file_io, file_io_input_name: problem.file_io_input_name, file_io_output_name: problem.file_io_output_name,