mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	make comperator simpler to read
This commit is contained in:
		| @@ -155,7 +155,11 @@ def trigger_notifaction(obj, category=None, obj_ref='pk', **kwargs): | |||||||
|         if delivery_methods is None: |         if delivery_methods is None: | ||||||
|             delivery_methods = inheritors(NotificationMethod) |             delivery_methods = inheritors(NotificationMethod) | ||||||
|  |  | ||||||
|         for method in [a for a in delivery_methods if a not in [SingleNotificationMethod, BulkNotificationMethod]]: |         ignored_classes = set([ | ||||||
|  |             SingleNotificationMethod, | ||||||
|  |             BulkNotificationMethod, | ||||||
|  |         ]) | ||||||
|  |         for method in (delivery_methods - ignored_classes): | ||||||
|             logger.info(f"Triggering method '{method.METHOD_NAME}'") |             logger.info(f"Triggering method '{method.METHOD_NAME}'") | ||||||
|             try: |             try: | ||||||
|                 deliver_notification(method, obj, category, targets, context) |                 deliver_notification(method, obj, category, targets, context) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user