Skip to content

fix 400 error for showing problems. #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2018
Merged

Conversation

si-yao
Copy link
Contributor

@si-yao si-yao commented May 26, 2018

To resolve: #100

@si-yao
Copy link
Contributor Author

si-yao commented May 26, 2018

Seems discussCategoryId is no longer a valid parameter. Removed from the request.

@@ -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.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, useless now

@skygragon
Copy link
Owner

Thanks the help @si-yao !

@skygragon skygragon merged commit 38e2127 into skygragon:master May 26, 2018
15cm pushed a commit to 15cm/leetcode-cli that referenced this pull request Jun 13, 2018
fix 400 error for showing problems.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ERROR] http error [400]
2 participants