File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ Great thanks to leetcode.com, a really awesome website!
4040
4141 Read help first $ leetcode help
4242 Login with your leetcode account $ leetcode user -l
43- Cookie login with cookie $ leetcode user -c
43+ Cookie login with cookie $ leetcode user -c
4444 Browse all questions $ leetcode list
4545 Choose one question $ leetcode show 1 -g -l cpp
4646 Coding it!
Original file line number Diff line number Diff line change @@ -97,12 +97,10 @@ plugin.getProblemsTitle = function(cb) {
9797 'query getQuestionTranslation($lang: String) {' ,
9898 ' translations: allAppliedQuestionTranslations(lang: $lang) {' ,
9999 ' title' ,
100- ' question { ' ,
101- ' questionId ' ,
100+ ' questionId ' ,
101+ ' __typename ' ,
102102 ' }' ,
103- ' }' ,
104- '}' ,
105- ''
103+ '}'
106104 ] . join ( '\n' ) ,
107105 variables : { } ,
108106 operationName : 'getQuestionTranslation'
@@ -116,7 +114,7 @@ plugin.getProblemsTitle = function(cb) {
116114
117115 const titles = [ ] ;
118116 body . data . translations . forEach ( function ( x ) {
119- titles [ x . question . questionId ] = x . title ;
117+ titles [ x . questionId ] = x . title ;
120118 } ) ;
121119
122120 return cb ( null , titles ) ;
You can’t perform that action at this time.
0 commit comments