{% extends "admin/base.html" %} {% block admin_title %}数据质量{% endblock %} {% block page_title %}数据质量中心{% endblock %} {% block page_subtitle %}数据库健康、引用完整性、Mart 覆盖与运行治理{% endblock %} {% block admin_content %} {% set status_styles = { 'pass': 'bg-emerald-100 text-emerald-700 border-emerald-200', 'warn': 'bg-amber-100 text-amber-700 border-amber-200', 'fail': 'bg-red-100 text-red-700 border-red-200' } %}
Integrity Report
{{ report.totals.pass }}
项检查通过
生成于 {{ report.generated_at }}
{{ report.totals.warn }}
Warnings
{{ report.totals.fail }}
Failures
{% for label, value in [ ('Matches', report.counts.matches), ('Players', report.counts.players), ('Rounds', report.counts.rounds), ('Events', report.counts.events), ('Reports', report.counts.l3_match_reports), ('Awards', report.counts.l3_awards) ] %}
{{ label }}
{{ '{:,}'.format(value or 0) }}
{% endfor %}

检查明细

失败优先,其次警告,最后通过项

{% for target_status in ['fail', 'warn', 'pass'] %} {% for check in report.checks if check.status == target_status %}
{{ check.name }}
{{ check.detail }}
{{ check.status }}
{% endfor %} {% endfor %}
{% endblock %}