|
17 | 17 | )
|
18 | 18 |
|
19 | 19 | func init() {
|
20 | | - html := remember(problemsetAllFile, 7, func() []byte { |
| 20 | + html := remember(problemsetAllFile, 3, func() []byte { |
21 | 21 | return client.Get(problemsetAllUrl)
|
22 | 22 | })
|
23 | 23 | reg := regexp.MustCompile(`href="/tag/(\S+?)/"`)
|
@@ -71,7 +71,7 @@ func GetTopicTag(slug string) (tt topicTagType) {
|
71 | 71 | "query": "query getTopicTag($slug: String!) {\n topicTag(slug: $slug) {\n name\n translatedName\n questions {\n status\n questionId\n questionFrontendId\n title\n titleSlug\n translatedTitle\n stats\n difficulty\n isPaidOnly\n topicTags {\n name\n translatedName\n slug\n __typename\n }\n companyTags {\n name\n translatedName\n slug\n __typename\n }\n __typename\n }\n frequencies\n __typename\n }\n favoritesLists {\n publicFavorites {\n ...favoriteFields\n __typename\n }\n privateFavorites {\n ...favoriteFields\n __typename\n }\n __typename\n }\n}\n\nfragment favoriteFields on FavoriteNode {\n idHash\n id\n name\n isPublicFavorite\n viewCount\n creator\n isWatched\n questions {\n questionId\n title\n titleSlug\n __typename\n }\n __typename\n}\n"
|
72 | 72 | }`
|
73 | 73 | filename := fmt.Sprintf(topicTagFile, slugToSnake(slug))
|
74 | | - graphQLRequest(filename, 3, jsonStr, &tt) |
| 74 | + graphQLRequest(filename, 2, jsonStr, &tt) |
75 | 75 | return
|
76 | 76 | }
|
77 | 77 |
|
|
0 commit comments