{% for task in tasks | sort(reverse=True, attribute='updatetime') %}
-
{% if task.status %}
{{ status_to_string(task.status) }}
{% elif task.track %}
{% set fetchok = task.track.fetch and task.track.fetch.ok %}
{% set processok = task.track.process and task.track.process.ok %}
{%- if not fetchok -%}
FETCH_ERROR
{%- elif not processok -%}
PROCESS_ERROR
{%- endif -%}
{% else %}
ERROR
{% endif %}
{{ task.project }}
>
{{ task.url }}
{{ task.updatetime | format_date }}
{% if task.track and task.track.fetch %}
{% set use_time = task.track.fetch.time + task.track.process.time if task.track and task.track.process else 0%}
{{ '%.2f' | format(use_time * 1000) }}ms
{% endif %}
{% if task.track and task.track.process %}
+{{ task.track.process.follows | int }}
{% endif %}
{% endfor %}