Skip to content

Commit a89c0b1

Browse files
committed
update
1 parent f34d351 commit a89c0b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/topic.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ func question2Topic(name string, questions []gjson.Result, doneQuestions map[int
123123
content += "|------|-------------------------------------------------------------|------|\n"
124124
// 遍历全部题目,找到包含当前标签的题目,逐行写入文件
125125
for _, question := range questions {
126+
no := int(question.Get("questionId").Int())
126127
topics := question.Get("topicTags").Array()
127128
for _, topic := range topics {
128-
no := int(question.Get("questionId").Int())
129129
topicName := topic.Get("name").String()
130130
if _, ok := doneQuestions[no]; !ok || topicName != name {
131131
continue

0 commit comments

Comments
 (0)