rename pricedb to prices

This commit is contained in:
Emi Vasilek 2023-11-11 13:49:00 +01:00
parent 065975d4c2
commit 546ef63289
3 changed files with 80 additions and 30 deletions

View file

@ -1,6 +1,6 @@
{% extends "base.html" %}
{% macro ingredientpart(ing) -%}
{{ing.amount|numprint}} {{ing["unit"].name}} {{ ing.name }}
{% if ing.price != None %}{{ing.price|round(1)|numprint}}{%else%} ?{%endif%} {{ing.amount|amountprint}} {{ing["unit"].name}} {{ ing.name }}
{%- endmacro %}
{% macro ingredient(ing) -%}
@ -36,4 +36,4 @@
{%block body %}
<a href="index.html">back</a>
{{getrecipe(recipe)}}
{%endblock%}
{%endblock%}