{% macro render(task, compact=False) -%} {% if task.is_completed() %} {% if 'num_of_queries' in task.ctx %} Compared {{ task.ctx['compared_responses_count'] }} responses {% if task.ctx['num_of_queries'] != task.ctx['compared_responses_count'] %} of {{ task.ctx['num_of_queries'] }}, {% endif %} {% if task.ctx.get('exceed_limit_uncompared_queries', False) %} of {{ task.ctx['num_of_queries'] }}, {% endif %} {% endif %} {% if task.ctx['compare_result'] %} no diff {% else %} {% if task.ctx.get('exceed_limit_uncompared_queries', False) %} exceed limit uncompared queries, {% endif %} {{ task.ctx['num_of_diffs'] if 'num_of_diffs' in task.ctx else '' }} diff

Compare stats

{% for key in task.ctx %} {% if 'uncompared_' in key %} {% endif %} {% endfor %}
{{ key }}{{ task.ctx[key] }}

Compare results

{% for resource in task.list_resources(resource_type='BASESEARCH_RESPONSES_COMPARE_RESULT') %} {% if task.ctx['save_simple_diff'] %} {% endif %} {% endfor %}
Full diff {{resource.remote_http()}}
Changed props {{resource.remote_http()}}/changed_props.html
Text diff {{resource.remote_http()}}/diff.txt
{% endif %} {% endif %} {%- endmacro %}