ntfy loaded topic count api reference updated (#1094)

pull/1096/head
Chris Caron 8 months ago committed by GitHub
parent c157ff12c0
commit 6cd528cd5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -698,7 +698,7 @@ class NotifyNtfy(NotifyBase):
"""
Returns the number of targets associated with this notification
"""
return len(self.topics)
return 1 if not self.topics else len(self.topics)
@staticmethod
def parse_url(url):

Loading…
Cancel
Save