Skip to content

Commit 61d4d49

Browse files
author
Shuo
authoredJun 22, 2019
Merge pull request #597 from openset/develop
Update: log
2 parents 02f0d37 + e0a706d commit 61d4d49

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed
 

‎internal/description/description.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package description
22

33
import (
4+
"fmt"
45
"sync"
56

67
"github.com/openset/leetcode/internal/base"
@@ -24,6 +25,7 @@ func runDescription(cmd *base.Command, args []string) {
2425
for _, problem := range problems.StatStatusPairs {
2526
wg.Add(1)
2627
tokens <- true
28+
fmt.Println(problem.Stat.FrontendQuestionId, "\t"+problem.Stat.QuestionTitle)
2729
go func(problem leetcode.StatStatusPairsType) {
2830
titleSlug := problem.Stat.QuestionTitleSlug
2931
question := leetcode.QuestionData(titleSlug, false).Data.Question

‎internal/leetcode/question_article.go

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
)
1010

1111
func GetDescription(articleSlug string) string {
12-
fmt.Println("\tquestion article", "saving...")
1312
filename := fmt.Sprintf(questionArticleFile, slugToSnake(articleSlug))
1413
html := remember(filename, 6, func() []byte {
1514
return client.Get(fmt.Sprintf(questionArticleUrl, articleSlug))

‎internal/leetcode/question_data.go

-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ func (d difficultyStrType) Str() (s string) {
9999

100100
func (question questionType) SaveContent() {
101101
if question.TitleSlug != "" {
102-
fmt.Println(question.QuestionFrontendId, "\t"+question.Title, "saving...")
103102
filePutContents(question.getFilePath("README.md"), question.getDescContent())
104103
question.saveMysqlSchemas()
105104
}

‎internal/question/question.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package question
22

33
import (
4+
"fmt"
45
"strconv"
56

67
"github.com/openset/leetcode/internal/base"
@@ -22,6 +23,7 @@ func runQuestion(cmd *base.Command, args []string) {
2223
problems := leetcode.ProblemsAll()
2324
for _, problem := range problems.StatStatusPairs {
2425
if problem.Stat.FrontendQuestionId == questionId {
26+
fmt.Println(questionId, "\t"+problem.Stat.QuestionTitle)
2527
titleSlug := problem.Stat.QuestionTitleSlug
2628
question := leetcode.QuestionData(titleSlug, true).Data.Question
2729
if question.Content == "" && problem.PaidOnly == true && problem.Stat.QuestionArticleLive {

0 commit comments

Comments
 (0)
Please sign in to comment.