mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
removed unncessary path filtering
This commit is contained in:
parent
dd72d45ce7
commit
3f8b250510
1 changed files with 0 additions and 12 deletions
|
|
@ -241,21 +241,9 @@ def get_assets(
|
|||
if not new_asset_names:
|
||||
return
|
||||
|
||||
folders_by_name = collections.defaultdict(list)
|
||||
for folder in _folders_query(
|
||||
project_name, con, fields, folder_names=new_asset_names, **kwargs
|
||||
):
|
||||
folders_by_name[folder["name"]].append(folder)
|
||||
|
||||
for name, folders in folders_by_name.items():
|
||||
folder = next(
|
||||
(
|
||||
folder
|
||||
for folder in folders
|
||||
if folder["path"] == name
|
||||
),
|
||||
folders[0]
|
||||
)
|
||||
yield convert_v4_folder_to_v3(folder, project_name)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue