From f310d9aab00d9ac0b6733b1de2125721ac628f6f Mon Sep 17 00:00:00 2001 From: neingeist Date: Thu, 12 Jun 2025 22:12:07 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20only=20show=20ingredient=20overview?= =?UTF-8?q?=20if=20the=20recipe=20has=20the=20flag=20set=20in=20tandoor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2_to_markdown.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/2_to_markdown.py b/2_to_markdown.py index c1bc094..c74827d 100644 --- a/2_to_markdown.py +++ b/2_to_markdown.py @@ -81,9 +81,10 @@ def format_recipe_to_markdown(recipe): md.append(f"* {p}\n") # Ingredients - md.append("\n## Zutaten (gesamt)") - for step in recipe["steps"]: - md += md_for_step_ingredients(step) + if recipe["show_ingredient_overview"]: + md.append("\n## Zutaten (gesamt)") + for step in recipe["steps"]: + md += md_for_step_ingredients(step) # Instructions if "steps" in recipe: