Skip to content

Commit f575746

Browse files
committed
fix explore question
1 parent 1b93601 commit f575746

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/main/java/com/shuzijun/leetcode/plugin/manager/ExploreManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ public static Question getItem(Question q) {
172172
JSONObject question = object.getJSONObject(q.getLangSlug());
173173
if(Constant.ITEM_TYPE_QUESTION.equals(q.getLangSlug())){
174174
q.setQuestionId(question.getString("questionId"));
175+
q.setFrontendQuestionId(question.getString("questionId"));
175176
q.setTitleSlug(question.getString("titleSlug"));
176177
}else {
177178
q.setNodeType(Constant.NODETYPE_DEF);

src/main/java/com/shuzijun/leetcode/plugin/manager/ViewManager.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ public String apply(Question question) {
7373
node.add(new DefaultMutableTreeNode(q));
7474
}
7575
for (String key : filter.keySet()) {
76+
if(Constant.FIND_TYPE_CATEGORY.equals(key)){
77+
continue;
78+
}
7679
DefaultMutableTreeNode filterNode = new DefaultMutableTreeNode(new Question(key));
7780
root.add(filterNode);
7881
addChild(filterNode, filter.get(key), question);

0 commit comments

Comments
 (0)