fix mail comparison

This commit is contained in:
Matthias 2021-12-02 02:36:00 +01:00
parent 55a8536636
commit 275569dab4
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -131,7 +131,7 @@ def trigger_notifaction(obj, entry_name=None, obj_ref='pk', receivers=None, rece
def deliver_notification(cls: NotificationMethod, obj, entry_name: str, receivers, notification_context: dict):
method = cls(obj, entry_name, receivers)
if method.recipiends and method.recipiends > 0:
if method.recipiends and method.recipiends.count() > 0:
logger.info(f"Notify users via '{method.method_name}' for notification '{entry_name}' for '{str(obj)}'")
if 'send_bulk' in method: