Use a filter

This commit is contained in:
tcely 2025-03-09 19:27:34 -04:00 committed by GitHub
parent 11e815e633
commit 29c2d44704
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
{% extends 'base.html' %}{% load humanize %} {% extends 'base.html' %}{% load humanize %}{% load filters %}
{% block headtitle %}Tasks{% endblock %} {% block headtitle %}Tasks{% endblock %}
@ -56,7 +56,7 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col s12"> <div class="col s12">
{% with adjusted=(total_scheduled - total_errors) %} {% with adjusted=total_scheduled|sub:total_errors ) %}
<h2>{{ adjusted|intcomma }} Scheduled ({{ scheduled|length|intcomma }} on this page)</h2> <h2>{{ adjusted|intcomma }} Scheduled ({{ scheduled|length|intcomma }} on this page)</h2>
{% endwith %} {% endwith %}
<p> <p>