From 275569dab447b06ee52f0cf16f0c320423c338c1 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 2 Dec 2021 02:36:00 +0100 Subject: [PATCH] fix mail comparison --- InvenTree/common/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/common/notifications.py b/InvenTree/common/notifications.py index ff476e17bc..edea0666e0 100644 --- a/InvenTree/common/notifications.py +++ b/InvenTree/common/notifications.py @@ -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: