mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
better variable name
This commit is contained in:
parent
0c64785f27
commit
f48425dd47
1 changed files with 5 additions and 5 deletions
|
|
@ -1482,14 +1482,14 @@ class CreateContext:
|
|||
for folder_path in folder_paths
|
||||
if folder_path is not None
|
||||
}
|
||||
remainders = set()
|
||||
remainder_paths = set()
|
||||
for folder_path in output:
|
||||
# Skip empty/invalid folder paths
|
||||
if folder_path is None or "/" not in folder_path:
|
||||
continue
|
||||
|
||||
if folder_path not in self._folder_id_by_folder_path:
|
||||
remainders.add(folder_path)
|
||||
remainder_paths.add(folder_path)
|
||||
continue
|
||||
|
||||
folder_id = self._folder_id_by_folder_path.get(folder_path)
|
||||
|
|
@ -1501,15 +1501,15 @@ class CreateContext:
|
|||
if folder_entity:
|
||||
output[folder_path] = folder_entity
|
||||
else:
|
||||
remainders.add(folder_path)
|
||||
remainder_paths.add(folder_path)
|
||||
|
||||
if not remainders:
|
||||
if not remainder_paths:
|
||||
return output
|
||||
|
||||
folder_paths_by_id = {}
|
||||
for folder_entity in ayon_api.get_folders(
|
||||
self.project_name,
|
||||
folder_paths=remainders,
|
||||
folder_paths=remainder_paths,
|
||||
):
|
||||
folder_id = folder_entity["id"]
|
||||
folder_path = folder_entity["path"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue