mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-03 22:08:49 +00:00
PEP fix
This commit is contained in:
parent
8490589fa9
commit
e418a54c25
@ -148,9 +148,9 @@ class MethodStorageClass:
|
|||||||
|
|
||||||
# make sure only one of each method is added
|
# make sure only one of each method is added
|
||||||
filtered_list = {}
|
filtered_list = {}
|
||||||
for item in current_method:
|
for item in current_method:
|
||||||
plugin = item.get_plugin(item)
|
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
|
filtered_list[ref] = item
|
||||||
|
|
||||||
storage.liste = list(filtered_list.values())
|
storage.liste = list(filtered_list.values())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user