{% if error %}
{{ error }}
{% else %}
task id
{{ task.id }}
status
{% if task.status == "ok" %}ok {% elif task.status == "error" %}error {% else %}{{ task.status }}{% endif %}
{% if task.kind == "download" %}
progress
{% if task.progress is not none %}
{{ task.progress }}% {% else %}—{% endif %}
{% if task.filepath %}
filepath
{{ task.filepath }}
{% endif %} {% else %}
rows added
{{ task.rows_added }}
{% endif %} {% if task.error %}
error
{{ task.error }}
{% endif %}
{% endif %}