mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix mail comparison
This commit is contained in:
parent
55a8536636
commit
275569dab4
@ -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):
|
def deliver_notification(cls: NotificationMethod, obj, entry_name: str, receivers, notification_context: dict):
|
||||||
method = cls(obj, entry_name, receivers)
|
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)}'")
|
logger.info(f"Notify users via '{method.method_name}' for notification '{entry_name}' for '{str(obj)}'")
|
||||||
|
|
||||||
if 'send_bulk' in method:
|
if 'send_bulk' in method:
|
||||||
|
Loading…
Reference in New Issue
Block a user