{% macro render(task, compact=False) -%}
{% if task.is_finished() %}
{% if 'num_of_queries' in task.ctx %}
num of queries: {{ task.ctx['num_of_queries'] }}
{% endif %}
{% if 'avg_query_length' in task.ctx %}
average query length: {{ task.ctx['avg_query_length'] }}
{% endif %}
{% if 'max_query_length' in task.ctx %}
max query length: {{ task.ctx['max_query_length'] }}
{% endif %}
{% if 'query_length_too_big_per_cent' in task.ctx %}
Queries too long (length more than required) per cent : {{ task.ctx['query_length_too_big_per_cent'] }}
{% endif %}
{% endif %}
{%- endmacro %}