From e418a54c255a62a31bc58904c1670b1f4b6083a1 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Sun, 1 May 2022 21:48:45 +0000 Subject: [PATCH] PEP fix --- InvenTree/common/notifications.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/InvenTree/common/notifications.py b/InvenTree/common/notifications.py index c9dd08e8da..fe6b195a4f 100644 --- a/InvenTree/common/notifications.py +++ b/InvenTree/common/notifications.py @@ -145,12 +145,12 @@ class MethodStorageClass: # for testing selective loading is made available if selected_classes: current_method = [item for item in current_method if item is selected_classes] - + # make sure only one of each method is added filtered_list = {} - for item in current_method: + for item in current_method: plugin = item.get_plugin(item) - ref = f'{plugin.package_path}_{item.METHOD_NAME}' if plugin else item.METHOD_NAME + ref = f'{plugin.package_path}_{item.METHOD_NAME}' if plugin else item.METHOD_NAME filtered_list[ref] = item storage.liste = list(filtered_list.values())