Remove false precision from area estimates

We give estimates of the area for those who can’t see the map. These
estimates were needlessly precise, gave a false sense of accuracy and
were causing intermittent test failures between different environments.

This commit rounds them in the same way that we round the count of
phones.
This commit is contained in:
Chris Hill-Scott
2021-06-24 16:54:08 +01:00
parent e4ca78634d
commit 2accf8434a
3 changed files with 20 additions and 18 deletions

View File

@@ -72,6 +72,7 @@ from app.formatters import (
nl2br,
recipient_count,
recipient_count_label,
round_to_significant_figures,
valid_phone_number,
)
from app.models.organisation import Organisation
@@ -564,6 +565,7 @@ def add_template_filters(application):
iteration_count,
recipient_count,
recipient_count_label,
round_to_significant_figures,
message_count_label,
message_count,
message_count_noun,