Skip to content

Commit 9d15100

Browse files
committed
Fixes NaN accept/submit numbers.
Signed-off-by: Eric Wang <skygragon@gmail.com>
1 parent be01a16 commit 9d15100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/leetcode_client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ leetcodeClient.getProblem = function(user, problem, cb) {
153153
if (e) return cb(e);
154154

155155
var $ = cheerio.load(body);
156-
var info = $('div[class="question-info text-info"] ul li strong');
156+
var info = $('div[class^=question-info] ul li strong');
157157

158158
problem.totalAC = $(info[0]).text();
159159
problem.totalSubmit = $(info[1]).text();

0 commit comments

Comments
 (0)