only show ingredient overview if the recipe has the flag set in tandoor

This commit is contained in:
neingeist 2025-06-12 22:12:07 +02:00
parent b111a34804
commit f310d9aab0

View file

@ -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: