mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 14:06:36 +00:00
Use a filter
This commit is contained in:
parent
11e815e633
commit
29c2d44704
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user