fix: fixed templated rendering using class object attributes
This commit is contained in:
@@ -1,18 +1,21 @@
|
||||
name: {{ name }}
|
||||
description: {{ description }}
|
||||
recipe_id: {{ recipe_id }
|
||||
picture_file_name: {{ picture_file_name | null }}
|
||||
base_serving: {{ base_serving | "1" }}
|
||||
desired_serving: {{ desired_serving | "1" }}
|
||||
not_checking_shopping_list: {{ not_checking_shopping_list | "1" }}
|
||||
{% for product in products }
|
||||
products:
|
||||
name: {{ recipe.name }}
|
||||
description: >-
|
||||
{{ recipe.description_txt }}
|
||||
recipe_id: {{ recipe.id }}
|
||||
picture_file_name: {% if recipe.picture_file_name is not none %}
|
||||
{{recipe.picture_file_name}}
|
||||
{% else %}
|
||||
|
||||
{% endif %}
|
||||
base_servings: {{ recipe.base_servings | default("1") }}
|
||||
desired_servings: {{ recipe.desired_servings | default("1") }}
|
||||
not_checking_shopping_list: {{ recipe.not_checking_shopping_list | default("1") }}
|
||||
products: {% for product in recipe.products %}
|
||||
- id: {{ product.id }}
|
||||
amount: {{ product.amount }}
|
||||
note: {{ product.note }}
|
||||
qu_id:
|
||||
qu_id: ''
|
||||
only_check_single_unit_in_stock: {{ product.only_check_single_unit_in_stock }}
|
||||
ingredient_group: {{ product.ingredient_group | null }}
|
||||
not_checking_shopping_list: {{ product.not_checking_shopping_list }}
|
||||
{% endfor }
|
||||
ingredient_group: {{ product.ingredient_group | default(null) }}
|
||||
not_checking_shopping_list: {{ product.not_checking_shopping_list }}{% endfor %}
|
||||
|
||||
|
Reference in New Issue
Block a user