mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
update get_products_menu_items > replace redundant code
This commit is contained in:
parent
03c5dd3da1
commit
ff0e6b9560
1 changed files with 5 additions and 8 deletions
|
|
@ -441,15 +441,12 @@ def get_products_menu_items(node):
|
|||
product_types=[my_product_type]
|
||||
)
|
||||
|
||||
items = list(map(lambda p: p["name"], products))
|
||||
items = []
|
||||
for product in products:
|
||||
items.append(product["name"])
|
||||
items.append(product["name"])
|
||||
|
||||
result = []
|
||||
|
||||
for i in items:
|
||||
result.append(i)
|
||||
result.append(i)
|
||||
|
||||
return(result)
|
||||
return(items)
|
||||
|
||||
|
||||
def select_folder_path(node):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue