6
6
"os"
7
7
"path"
8
8
"regexp"
9
- "strconv"
10
9
"strings"
11
10
"time"
12
11
@@ -31,12 +30,12 @@ func runPost(cmd *base.Command, args []string) {
31
30
formatSimilarQuestion := " 1. [%s](/%s)%s\n "
32
31
problems := leetcode .ProblemsAll ()
33
32
for _ , problem := range problems .StatStatusPairs {
33
+ questionId := problem .Stat .FrontendQuestionId
34
34
titleSlug := problem .Stat .QuestionTitleSlug
35
35
question := leetcode .QuestionData (titleSlug , false ).Data .Question
36
36
if question .TranslatedContent != "" {
37
- fmt .Println (question . QuestionFrontendId , "\t " + question .TranslatedTitle , "saving..." )
37
+ fmt .Println (questionId , "\t " + question .TranslatedTitle , "saving..." )
38
38
var buf bytes.Buffer
39
- questionId , _ := strconv .Atoi (question .QuestionFrontendId )
40
39
t := time .Date (2016 , 1 , 1 , 21 , 30 , 0 , 0 , time .Local )
41
40
t = t .AddDate (0 , 0 , questionId )
42
41
var tags []string
@@ -131,6 +130,7 @@ var inPosts = map[int]bool{
131
130
2 : true ,
132
131
3 : true ,
133
132
4 : true ,
133
+ 6 : true ,
134
134
7 : true ,
135
135
8 : true ,
136
136
9 : true ,
0 commit comments