mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-27 09:29:22 -04:00
Remove duplicative notifications_processed property
It returned the same value (and had the same code as `.notifications_sent`). I think `.notifications_sent` is a better name because it’s closer to the language (‘sending’ and ‘sent’) that we use in the interface.
This commit is contained in:
@@ -70,10 +70,6 @@ class Job(JSONModel):
|
||||
def notifications_sent(self):
|
||||
return self.notifications_delivered + self.notifications_failed
|
||||
|
||||
@property
|
||||
def notifications_processed(self):
|
||||
return self.notifications_delivered + self.notifications_failed
|
||||
|
||||
@property
|
||||
def notifications_sending(self):
|
||||
if self.scheduled:
|
||||
@@ -94,7 +90,7 @@ class Job(JSONModel):
|
||||
|
||||
@cached_property
|
||||
def finished_processing(self):
|
||||
return self.notification_count == self.notifications_processed
|
||||
return self.notification_count == self.notifications_sent
|
||||
|
||||
@property
|
||||
def template_id(self):
|
||||
|
||||
Reference in New Issue
Block a user