File tree 1 file changed +1
-0
lines changed
1 file changed +1
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ pub fn get_question_info(mut ques: &str) -> Resp {
107
107
108
108
let data_fmt = r#"{"operationName":"questionData","variables":{"titleSlug":"{}"},
109
109
"query":"query questionData($titleSlug: String!) {\n question(titleSlug: $titleSlug) {\n questionId\n questionFrontendId\n boundTopicId\n title\n titleSlug\n content\n translatedTitle\n translatedContent\n isPaidOnly\n difficulty\n likes\n dislikes\n isLiked\n similarQuestions\n contributors {\n username\n profileUrl\n avatarUrl\n __typename\n }\n langToValidPlayground\n topicTags {\n name\n slug\n translatedName\n __typename\n }\n companyTagStats\n codeSnippets {\n lang\n langSlug\n code\n __typename\n }\n stats\n hints\n solution {\n id\n canSeeDetail\n __typename\n }\n status\n sampleTestCase\n metaData\n judgerAvailable\n judgeType\n mysqlSchemas\n enableRunCode\n envInfo\n book {\n id\n bookName\n pressName\n source\n shortDescription\n fullDescription\n bookImgUrl\n pressImgUrl\n productUrl\n __typename\n }\n isSubscribed\n isDailyQuestion\n dailyRecordStatus\n editorType\n ugcQuestionId\n style\n __typename\n }\n}\n"}"# ;
110
+
110
111
let data = data_fmt. replace ( "{}" , ques) ;
111
112
112
113
Client :: new ( )
You can’t perform that action at this time.
0 commit comments