✨ lib: read_recipes()
This commit is contained in:
parent
d54fd73e53
commit
6c7ad52c72
4 changed files with 7 additions and 30 deletions
|
|
@ -3,6 +3,7 @@ import re
|
|||
import os
|
||||
|
||||
from config import *
|
||||
from lib import *
|
||||
|
||||
|
||||
def clean_recipe(recipe):
|
||||
|
|
@ -85,12 +86,7 @@ def main():
|
|||
|
||||
# Read all and check
|
||||
|
||||
recipes = []
|
||||
for json_file in os.listdir(OUTDIR_JSON):
|
||||
with open(os.path.join(OUTDIR_JSON, json_file), "r", encoding="utf-8") as f:
|
||||
data = json.load(f)
|
||||
recipes.append(data)
|
||||
|
||||
recipes = read_recipes()
|
||||
for recipe in recipes:
|
||||
md = check_recipe(recipe)
|
||||
if not md:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue