{% extends 'base.html' %} {% block main %}

TLS Reports

{% for domain, rpts in reports.items() %}
{%- set count_s = ((rpts | map(attribute='stats') | unzip)[0] | unzip)[0] | sum %} {%- set count_f = ((rpts | map(attribute='stats') | unzip)[0] | unzip)[1] | sum %}

{{ domain }}{% if count_s + count_f > 0%}: {{ (count_s / (count_s + count_f)) | int * 100 }}%{% endif %}

{%- for report in rpts %} {%- set cs = report.stats | sum(attribute=0) %} {%- set cf = report.stats | sum(attribute=1) %} {% endfor %}
Date Report ID Success Rate Actions
{{ report.report_id }} {% if cs + cf == 0 %} 0 {% else %} {{ (cs / (cs + cf)) | int * 100 }}% ({{ cs + cf }}) {% endif %} View Download
{% endfor %} {% endblock %}