mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-22 19:40:14 -04:00
remove unused fetch_plans_since method
This commit is contained in:
parent
0f896c2a32
commit
f4e7c0cf63
@ -365,23 +365,6 @@ impl HttpStore {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn get_plans_since(
|
|
||||||
&self,
|
|
||||||
date: chrono::NaiveDate,
|
|
||||||
) -> Result<BTreeMap<chrono::NaiveDate, Vec<(String, i32)>>, Error> {
|
|
||||||
let mut path = self.root.clone();
|
|
||||||
path.push_str("/plan");
|
|
||||||
path.push_str(&format!("/{}", date));
|
|
||||||
// TODO(jwall): How does this play with the cache?
|
|
||||||
let resp = reqwasm::http::Request::get(&path).send().await?;
|
|
||||||
if resp.status() != 200 {
|
|
||||||
Err(format!("Status: {}", resp.status()).into())
|
|
||||||
} else {
|
|
||||||
debug!("We got a valid response back");
|
|
||||||
Ok(resp.json().await?)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn get_inventory_data(
|
pub async fn get_inventory_data(
|
||||||
&self,
|
&self,
|
||||||
) -> Result<(BTreeSet<IngredientKey>, BTreeMap<IngredientKey, String>), Error> {
|
) -> Result<(BTreeSet<IngredientKey>, BTreeMap<IngredientKey, String>), Error> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user