diff --git a/app/templates/views/check.html b/app/templates/views/check.html index df6b7886a..a942579e9 100644 --- a/app/templates/views/check.html +++ b/app/templates/views/check.html @@ -15,7 +15,7 @@ {% block maincolumn_content %} - {% if recipients.has_too_many_rows %} + {% if recipients.too_many_rows %}
+ Can’t show the contents of this file +
+ {% elif count_of_displayed_recipients < count_of_recipients %}{% if row_errors and not recipients.missing_column_headers %} Only showing the first {{ count_of_displayed_recipients }} rows with errors diff --git a/tests/app/main/views/test_send.py b/tests/app/main/views/test_send.py index 5aef8e117..cecaac6dc 100644 --- a/tests/app/main/views/test_send.py +++ b/tests/app/main/views/test_send.py @@ -795,7 +795,7 @@ def test_check_messages_shows_over_max_row_error( mock_recipients = mocker.patch('app.main.views.send.RecipientCSV').return_value mock_recipients.max_rows = 11111 mock_recipients.__len__.return_value = 99999 - mock_recipients.has_too_many_rows.return_value = True + mock_recipients.too_many_rows.return_value = True client.login(api_user_active) with client.session_transaction() as session: