Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a9fa36f

Browse files
committed
fix 400 error for showing problems.
1 parent bb09530 commit a9fa36f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/plugins/leetcode.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ plugin.getProblem = function(problem, cb) {
138138
' enableRunCode',
139139
' metaData',
140140
' translatedContent',
141-
' discussCategoryId',
142141
' }',
143142
'}'
144143
].join('\n'),
@@ -166,7 +165,8 @@ plugin.getProblem = function(problem, cb) {
166165
problem.testcase = q.sampleTestCase;
167166
problem.testable = q.enableRunCode;
168167
problem.templateMeta = JSON.parse(q.metaData);
169-
problem.discuss = q.discussCategoryId;
168+
// @si-yao: seems below property is never used.
169+
//problem.discuss = q.discussCategoryId;
170170

171171
return cb(null, problem);
172172
});

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /