ntfy loaded topic count api reference updated (#1094)

This commit is contained in:
Chris Caron 2024-04-06 11:13:16 -04:00 committed by GitHub
parent c157ff12c0
commit 6cd528cd5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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