Petits ajustements sur la liste des importations récentes

This commit is contained in:
Jean-Marie Favreau 2024-10-04 20:28:23 +02:00
parent bb272a658e
commit 670961e6d0
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@
{% if obj.nb_imports > 0 %}
{% with imp=obj.last_import %}
<span{% if imp.status == "failed" %} data-tooltip="{{ imp.error_message }}"{% endif %}>
{% if imp.status == "running" %}<em>{{ imp.status }}</em>{% else %}{{ imp.status }}{% endif %}
{% if imp.status == "running" %}<em>{{ imp.status }}</em>{% else %}{{ imp.status }} {% if imp.status == "success" %} ({{ imp.nb_initial }}){% endif %}{% endif %}
</span>
{% endwith %}
{% endif %}

View File

@ -1164,7 +1164,7 @@ def recurrent_imports(request, status=None):
events_selected = events.filter(last_run_status=status)
events_selected = events_selected.order_by("-pk")
paginator = Paginator(events_selected, 10)
paginator = Paginator(events_selected, 50)
page = request.GET.get("page")
nb_failed = (events