Skip to content

Commit

Permalink
[Bulk] Include message about time file kept.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Nov 20, 2024
1 parent 447ede8 commit 367a5d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bulk_lookup/management/commands/process_bulk_lookups.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion bulk_lookup/templates/bulk_lookup/finished.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ <h1>Thanks!</h1>
{% if bulklookup.finished %}
<p>
Your job has been completed, download your enhanced CSV here:
<a href="{{ bulklookup.output_file.url }}">{{ bulklookup.output_file_name }}</a>
<a href="{{ bulklookup.output_file.url }}">{{ bulklookup.output_file_name }}</a>.
It will be kept by us for one week.
</p>
{% else %}
<p>
Expand Down

0 comments on commit 367a5d1

Please sign in to comment.