mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-31 11:49:58 -04:00
Don’t show progress once notifications are gone
We work out how complete a job’s processing is by looking at how many notifications have been created. Later, we deleted all the notifications, according to the data retention schedule. This makes it look like the job has gone back to 0% processed. This commit accounts for this by not showing the % complete message once a finished job has had its notifications deleted.
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
{% if template.template_type == 'letter' %}
|
||||
<div class="keyline-block bottom-gutter-1-2">
|
||||
{% endif %}
|
||||
{% if percentage_complete < 100 %}
|
||||
{% if percentage_complete < 100 and job.job_status != 'finished' %}
|
||||
<p class="{% if template.template_type != 'letter' %}bottom-gutter{% endif %} hint">
|
||||
Report is {{ "{:.0f}%".format(percentage_complete * 0.99) }} complete…
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user