From a9fa36fc4fca11d06eee0fd4aa4b7d3e8ae8d3b9 Mon Sep 17 00:00:00 2001 From: si-yao Date: Sat, 26 May 2018 01:43:12 -0700 Subject: [PATCH] fix 400 error for showing problems. --- lib/plugins/leetcode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plugins/leetcode.js b/lib/plugins/leetcode.js index ff5ed557..38c61b4c 100644 --- a/lib/plugins/leetcode.js +++ b/lib/plugins/leetcode.js @@ -138,7 +138,6 @@ plugin.getProblem = function(problem, cb) { ' enableRunCode', ' metaData', ' translatedContent', - ' discussCategoryId', ' }', '}' ].join('\n'), @@ -166,7 +165,8 @@ plugin.getProblem = function(problem, cb) { problem.testcase = q.sampleTestCase; problem.testable = q.enableRunCode; problem.templateMeta = JSON.parse(q.metaData); - problem.discuss = q.discussCategoryId; + // @si-yao: seems below property is never used. + //problem.discuss = q.discussCategoryId; return cb(null, problem); });