Increase number of rows shown

We probably shouldn’t hide the contents of the CSV when people are just
testing the app, or if they’re starting off with small jobs.

A limit of 15 rows displayed was awkwardly on the cusp between just
testing and sending a small batch.

This commit increases the limit to 50; I reckon that over 50 recipients
no-one will be wanting to check them all individually.
This commit is contained in:
Chris Hill-Scott
2016-04-07 14:30:51 +01:00
parent dd9548da67
commit 2912ea1806
2 changed files with 9 additions and 27 deletions

View File

@@ -227,8 +227,8 @@ def check_messages(service_id, template_type, upload_id):
contents,
template_type=template.template_type,
placeholders=template.placeholders,
max_initial_rows_shown=15,
max_errors_shown=15,
max_initial_rows_shown=50,
max_errors_shown=50,
whitelist=itertools.chain.from_iterable(
[user.mobile_number, user.email_address] for user in users
) if current_service['restricted'] else None