From 367a5d1cfa2e51890d588ac47169d676df42aad0 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 20 Nov 2024 18:19:39 +0000 Subject: [PATCH] [Bulk] Include message about time file kept. --- bulk_lookup/management/commands/process_bulk_lookups.py | 6 +++--- bulk_lookup/templates/bulk_lookup/finished.html | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bulk_lookup/management/commands/process_bulk_lookups.py b/bulk_lookup/management/commands/process_bulk_lookups.py index 2f435a07..b585a619 100644 --- a/bulk_lookup/management/commands/process_bulk_lookups.py +++ b/bulk_lookup/management/commands/process_bulk_lookups.py @@ -110,13 +110,13 @@ def send_success_email(self, bulk_lookup): get_current_site(None).domain, bulk_lookup.output_file.url ]) - message = """ + message = f""" We have matched your postcodes and added all the results to your data. -You can download your new file from {0} +You can download your new file within the next week from {url} Thanks for using MapIt, a service from mySociety. -""".format(url) +""" send_mail( 'Your MapIt file is ready', message, diff --git a/bulk_lookup/templates/bulk_lookup/finished.html b/bulk_lookup/templates/bulk_lookup/finished.html index 41e89475..b52a0675 100644 --- a/bulk_lookup/templates/bulk_lookup/finished.html +++ b/bulk_lookup/templates/bulk_lookup/finished.html @@ -10,7 +10,8 @@

Thanks!

{% if bulklookup.finished %}

Your job has been completed, download your enhanced CSV here: - {{ bulklookup.output_file_name }} + {{ bulklookup.output_file_name }}. + It will be kept by us for one week.

{% else %}