From 7775de037c2f9532ed74bd31fae8e6b87ae2e1db Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Sat, 30 Sep 2023 22:10:56 -0400 Subject: [PATCH] Updated Development_Contribution (markdown) --- Development_Contribution.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Development_Contribution.md b/Development_Contribution.md index 63eba84..58260d1 100644 --- a/Development_Contribution.md +++ b/Development_Contribution.md @@ -78,6 +78,16 @@ class NotifyFooBar(NotifyBase): # otherwise return False if it failed. return True + def __len__(self): + """ + Returns the number of targets associated with this notification + """ + # By default if this isn't defined then one (1) is always returned + # but there are cases where you make accept many notification end points + # to notify. So this function may return something like len(self.targets). + + return 1 + @staticmethod def parse_url(url): """