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:
Chris Hill-Scott
2020-01-16 15:40:49 +00:00
parent fda979a5f2
commit cbf0d905e3

View File

@@ -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):