Merge pull request #3263 from alphagov/fix-new-jobs-showing-as-deleted

Use time to determine why notifications don’t exist
This commit is contained in:
Chris Hill-Scott
2020-01-24 15:27:29 +00:00
committed by GitHub
7 changed files with 93 additions and 14 deletions

View File

@@ -47,7 +47,7 @@
notifications,
caption=uploaded_file_name,
caption_visible=False,
empty_message='These messages have been deleted because they were sent more than {} days ago'.format(service_data_retention_days) if job.status == 'finished' else 'No messages to show yet…',
empty_message='No messages to show yet…' if job.awaiting_processing_or_recently_processed else 'These messages have been deleted because they were sent more than {} days ago'.format(service_data_retention_days),
field_headings=[
'Recipient',
'Status'