mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-04 13:41:38 -04:00
Rename property to more accurately describe purpose
`recently_created` says it would just be looking at the `created_at` field to see if it's been created recently. Technically this method isn't doing that, whilst its behaviour would be similar, it's actually different and maybe therefore a bit misleading.
This commit is contained in:
@@ -107,7 +107,7 @@ class Job(JSONModel):
|
||||
return self.notification_count == self.notifications_sent
|
||||
|
||||
@property
|
||||
def recently_created(self):
|
||||
def awaiting_processing_or_recently_processed(self):
|
||||
if not self.processing_started:
|
||||
# Assume that if processing hasn’t started yet then the job
|
||||
# must have been created recently enough to not have any
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
notifications,
|
||||
caption=uploaded_file_name,
|
||||
caption_visible=False,
|
||||
empty_message='No messages to show yet…' if job.recently_created else 'These messages have been deleted because they were sent more than {} days ago'.format(service_data_retention_days),
|
||||
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'
|
||||
|
||||
Reference in New Issue
Block a user