MCPcopy Index your code
hub / github.com/clearloop/leetcode-cli / get_daily_problem_id

Method get_daily_problem_id

src/cache/mod.rs:130–140  ·  view source on GitHub ↗

Get daily problem

(&self)

Source from the content-addressed store, hash-verified

128
129 /// Get daily problem
130 pub async fn get_daily_problem_id(&self) -> Result<i32, Error> {
131 parser::daily(
132 self.clone()
133 .0
134 .get_question_daily()
135 .await?
136 .json() // does not require LEETCODE_SESSION
137 .await?,
138 )
139 .ok_or(Error::NoneError)
140 }
141
142 /// Get problems from cache
143 pub fn get_problems(&self) -> Result<Vec<Problem>, Error> {

Callers 4

runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80

Calls 2

dailyFunction · 0.85
get_question_dailyMethod · 0.80

Tested by 1

runMethod · 0.64