{% extends "base.html" %} {% from "_macros.html" import th, svg_heatmap, legend_freshness %} {% block title %}数据覆盖 Data coverage · 爬虫控制台{% endblock %} {% block content %}

数据覆盖 Data coverage

{{ n_concepts }} 个概念有观测 concepts with observations · {{ total_rows }} local rows 本地行 · {% if census %}{{ "{:,}".format(census_total) }} across all stores 全部存储合计{% else %}census 尚未采样 not yet sampled{% endif %}

{% if census %}

存储 Stores (最新普查 latest census)

{{ th('存储', 'Store') }}{{ th('类型', 'Kind') }}{{ th('行数', 'Rows') }}{{ th('大小', 'Size') }}{{ th('分块', 'Chunks') }}{{ th('数据截至', 'Data through') }}{{ th('采样于', 'Sampled') }} {% for c in census %} {% endfor %}
{{ c.store }} {{ c.kind }} {% if c.error %}错误 error {% elif c.approx_rows is none %}— {% else %}{% if not c.exact %}≈{% endif %}{{ "{:,}".format(c.approx_rows) }}{% endif %} {% if c.total_size_bytes %}{{ (c.total_size_bytes / 1073741824) | round(1) }} GB{% else %}—{% endif %} {{ c.chunks or '—' }} {{ c.time_range_end or '—' }} {% if c.stale %}陈旧 stale {% endif %}{{ c.age_hours if c.age_hours is not none else '—' }}h 前 ago
{% endif %} {% block coverage_heatmap %}

概念新鲜度 Concept freshness

{{ svg_heatmap(heat, link_prefix='/panel/data?freshness=', active_key=freshness) }} {{ legend_freshness() }} {% if freshness %}清除新鲜度筛选 Clear freshness{% endif %}
{% endblock %}
清除 Clear
{{ th('概念', 'Concept') }}{{ th('分类', 'Category') }}{{ th('行数', 'Rows') }}{{ th('最新日期', 'Latest date') }}{{ th('数据源', 'Sources') }}{{ th('上次抓取', 'Last fetch') }} {% for c in coverage %} {% else %} {% endfor %}
{{ c.name_zh or c.name_en or c.code or c.concept_id }} {{ c.category or '—' }} {{ c.rows }} {{ c.latest_date or '—' }} {{ c.sources }} {{ c.last_fetch or '—' }}
没有匹配的观测 No observations match.
{% endblock %}