{% extends frame.html %} {% block body %}

{{report['report_type_name']}} Report Run Report

{% if output %}
{# Combined with timeframe/rollup and table sorting, this could be super powerful #} {# Simple Sort HTML Table: https://www.w3schools.com/howto/howto_js_sort_table.asp #} {% for name in column_names %} {% end %} {% for row in output %} {% for name in column_names %} {% end %} {% end %} {% for name in column_names[1:] %} {% end %} {% for column_name in column_names[1:] %} {% end %}
{{name}}
{{row.get(name)}}
TOTALS{{name}}
{{num_rows}} Rows{{report_totals.get(column_name, '')}}
{% elif errors.get('sql_error') %}
{{errors['sql_error']}}
{% end %}

SQL Edit

{{report['report_sql']}}
{% end %}