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