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") md.append(f"* {p}\n")
# Ingredients # Ingredients
md.append("\n## Zutaten (gesamt)") if recipe["show_ingredient_overview"]:
for step in recipe["steps"]: md.append("\n## Zutaten (gesamt)")
md += md_for_step_ingredients(step) for step in recipe["steps"]:
md += md_for_step_ingredients(step)
# Instructions # Instructions
if "steps" in recipe: if "steps" in recipe: