Initial import: vesti.nixg.ru — новостной апрув-проект (web, crawler, classifier, publisher, openspec)

This commit is contained in:
kpa39l
2026-09-13 15:58:32 +00:00
commit c3f59f7b7a
113 changed files with 7065 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
{% extends "base.html" %}
{% block title %}Метрики{% endblock %}
{% block content %}
<h4 class="mb-3">Метрики</h4>
<div class="row">
{% for d in dirs %}
<div class="col-md-4 mb-3">
<div class="card">
<div class="card-body">
<h6 class="card-title">{{ d.direction or 'без направления' }} / {{ d.cnt }}</h6>
<small>👁 просмотров: {{ d.views or 0 }} · средние реакции: {{ "%.1f"|format(d.avg_reactions or 0) }}</small>
</div>
</div>
</div>
{% endfor %}
</div>
<h5 class="mt-4">Последние запуски</h5>
<table class="table table-sm table-striped">
<thead><tr><th>Время</th><th>Источник</th><th>Стаус</th><th>Пстов</th></tr></thead>
<tbody>
{% for r in runs %}
<tr><td>{{ r.started_at | dt }}</td><td>{{ r.source_id }}</td><td>{{ r.status }}</td><td>{{ r.posts_new }}/{{ r.posts_fetched }}</td></tr>
{% endfor %}
</tbody>
</table>
{% endblock %}