grocy-cli/templates/chore/list.yml

8 lines
610 B
YAML

{{ 'Chore' }} {{ '%15s'|format('') }} {{ 'Next estimated tracking' }} {{ '%15s'|format('') }} {{ 'Last tracked' }}
{%- for chore in grocy.chores %}
{{ chore.fields.name }} {{ '%15s'|format('') }}{%- if '2999-' in chore.fields.next_estimated_execution_time or 'Never' in chore.fields.next_estimated_execution_time %} {{'%10s'|format('---')}}
{%- else %} {{chore.fields.next_estimated_execution_time}} {%endif%} {{'%15s'|format('')}}
{%- if not chore.fields.last_tracked_time %} {{'%20s'|format('None')}}
{%- else %} {{chore.fields.last_tracked_time}}{%endif%}
{%- if loop.nextitem %}{%endif%}{%endfor%}