add filter recipe file
This commit is contained in:
parent
08bb0899a3
commit
9fb1d348da
1 changed files with 1 additions and 0 deletions
|
|
@ -166,6 +166,7 @@ pub fn build_recipe_shardings(source: PathBuf) -> HashMap<String, Value> {
|
||||||
|
|
||||||
let mut recipes: Vec<Recipe> = files
|
let mut recipes: Vec<Recipe> = files
|
||||||
.par_iter()
|
.par_iter()
|
||||||
|
.filter(|file| file.ends_with("json") && file.starts_with("coffeethai02"))
|
||||||
.map(|file| common::create_recipe_model_from_file(file.to_string()))
|
.map(|file| common::create_recipe_model_from_file(file.to_string()))
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue