From c940c8a8d829f6793f80a5a040ecdd78bde4c1dc Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 29 Jun 2017 16:30:00 +0100 Subject: [PATCH] =?UTF-8?q?Never=20say=20=E2=80=98report=20is=20100%=20com?= =?UTF-8?q?plete=E2=80=A6=E2=80=99=20on=20job=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- app/templates/partials/jobs/notifications.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/partials/jobs/notifications.html b/app/templates/partials/jobs/notifications.html index 9062acda8..c630afda7 100644 --- a/app/templates/partials/jobs/notifications.html +++ b/app/templates/partials/jobs/notifications.html @@ -26,7 +26,7 @@ {% if percentage_complete < 100 %}

- Report is {{ "{:.0f}%".format(percentage_complete) }} complete… + Report is {{ "{:.0f}%".format(percentage_complete * 0.99) }} complete…

{% elif notifications %}