🎨 black-ify the code base
This commit is contained in:
parent
83e1caf19d
commit
d54fd73e53
9 changed files with 126 additions and 19 deletions
|
|
@ -9,8 +9,6 @@ from tqdm import tqdm
|
|||
from config import *
|
||||
|
||||
|
||||
|
||||
|
||||
def allergens_for_step_ingredients(step):
|
||||
l = []
|
||||
for ingredient in step["ingredients"]:
|
||||
|
|
@ -40,6 +38,7 @@ def allergens_for_recipe(recipe):
|
|||
def link(recipe):
|
||||
return f"{TANDOOR_URL + "/view/recipe/" + str(recipe["id"])}"
|
||||
|
||||
|
||||
def wiki_link(recipe):
|
||||
wiki_slug = recipe["name"]
|
||||
wiki_slug = re.sub(" ", "_", wiki_slug)
|
||||
|
|
@ -54,6 +53,7 @@ def decruft_ingredient(i_name: str):
|
|||
i_name = i_name.replace(" (getrocknet)", "")
|
||||
return i_name
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Path("report_allergene_korrektur.csv").unlink(missing_ok=True)
|
||||
|
|
@ -90,5 +90,6 @@ def main():
|
|||
f.write(zutaten + "\n")
|
||||
f.write("\n\n\n")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue