Never say ‘report is 100% complete…’ on job page

This message is meant to indicate that generating the report is still in
progress. Saying 100% contradicts this because 100% sounds like
‘complete’.

Reason this is happening is because rounding 99.5 to 0 decimal places
gives you 100.

So let’s make sure it never gets above 99.0
This commit is contained in:
Chris Hill-Scott
2017-06-29 16:30:00 +01:00
committed by Chris Hill Scott
parent 56a59e7729
commit c940c8a8d8

View File

@@ -26,7 +26,7 @@
{% if percentage_complete < 100 %}
<p class="bottom-gutter hint">
Report is {{ "{:.0f}%".format(percentage_complete) }} complete…
Report is {{ "{:.0f}%".format(percentage_complete * 0.99) }} complete…
</p>
{% elif notifications %}
<p class="bottom-gutter">