feat: Added get shopping list and shopping lists

style: Removed unused __init__.py file
This commit is contained in:
Aerex
2019-10-13 15:27:10 -05:00
parent 6689fd2d5d
commit 6986dd0968
4 changed files with 96 additions and 100 deletions

View File

@@ -0,0 +1,9 @@
{% for shopping_list in grocy.fields.shopping_lists %}
id: {{ shopping_list.id }}
name: {{ shopping_list.name }}
description: |-
{{ shopping_list.description }}
{% if loop.nextitem %}
---
{%endif%}
{%endfor %}

View File

@@ -0,0 +1,8 @@
{% for shopping_list_item in grocy.fields.shopping_list_items %}
product: {{ shopping_list_item.product.name }}
amount: {{ shopping_list_item.amount }}
note: {{ shopping_list_item.note }}
{% if loop.nextitem %}
---
{%endif%}
{%endfor %}