Skip to content

Commit

Permalink
fix: removed hashes from raw strings which don't need them
Browse files Browse the repository at this point in the history
  • Loading branch information
pawarherschel authored and c-git committed Feb 6, 2024
1 parent 29fc16c commit dc08404
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/tool/core/helpers/code_snippet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ pub(crate) fn get_code_snippet_for_problem(title_slug: &str) -> anyhow::Result<P
info!("Going to get code for {title_slug}");
let code_snippets_res = ureq::get(Config::LEETCODE_GRAPH_QL)
.send_json(ureq::json!({
"query": r#"query questionEditorData($titleSlug: String!) {
"query": r"query questionEditorData($titleSlug: String!) {
question(titleSlug: $titleSlug) {
codeSnippets {
lang
code
}
}
}"#,
}",
"variables":{"titleSlug": title_slug},
"operationName":"questionEditorData"
}))
Expand Down
4 changes: 2 additions & 2 deletions src/tool/core/helpers/daily_challenge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ struct DailyChallengeResponse {
pub(crate) fn get_daily_challenge_slug() -> anyhow::Result<String> {
let daily_challenge_response = ureq::get(Config::LEETCODE_GRAPH_QL)
.send_json(ureq::json!({
"query": r#"query questionOfToday {
"query": r"query questionOfToday {
activeDailyCodingChallengeQuestion {
question {
titleSlug
}
}
}"#,
}",
"variables":{},
"operationName":"questionOfToday"
}))
Expand Down
4 changes: 2 additions & 2 deletions src/tool/core/helpers/problem_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ pub(crate) fn get_problem_metadata(title_slug: &str) -> anyhow::Result<ProblemMe
info!("Going to get problem metadata");
let QuestionWrapper { inner: result } = ureq::get(Config::LEETCODE_GRAPH_QL)
.send_json(ureq::json!({
"query": r#"query consolePanelConfig($titleSlug: String!) {
"query": r"query consolePanelConfig($titleSlug: String!) {
question(titleSlug: $titleSlug) {
questionFrontendId
questionTitle
exampleTestcaseList
}
}"#,
}",
"variables":{"titleSlug": title_slug},
"operationName":"consolePanelConfig"
}))
Expand Down

0 comments on commit dc08404

Please sign in to comment.