mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +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
|
for folder_path in folder_paths
|
||||||
if folder_path is not None
|
if folder_path is not None
|
||||||
}
|
}
|
||||||
remainders = set()
|
remainder_paths = set()
|
||||||
for folder_path in output:
|
for folder_path in output:
|
||||||
# Skip empty/invalid folder paths
|
# Skip empty/invalid folder paths
|
||||||
if folder_path is None or "/" not in folder_path:
|
if folder_path is None or "/" not in folder_path:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if folder_path not in self._folder_id_by_folder_path:
|
if folder_path not in self._folder_id_by_folder_path:
|
||||||
remainders.add(folder_path)
|
remainder_paths.add(folder_path)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
folder_id = self._folder_id_by_folder_path.get(folder_path)
|
folder_id = self._folder_id_by_folder_path.get(folder_path)
|
||||||
|
|
@ -1501,15 +1501,15 @@ class CreateContext:
|
||||||
if folder_entity:
|
if folder_entity:
|
||||||
output[folder_path] = folder_entity
|
output[folder_path] = folder_entity
|
||||||
else:
|
else:
|
||||||
remainders.add(folder_path)
|
remainder_paths.add(folder_path)
|
||||||
|
|
||||||
if not remainders:
|
if not remainder_paths:
|
||||||
return output
|
return output
|
||||||
|
|
||||||
folder_paths_by_id = {}
|
folder_paths_by_id = {}
|
||||||
for folder_entity in ayon_api.get_folders(
|
for folder_entity in ayon_api.get_folders(
|
||||||
self.project_name,
|
self.project_name,
|
||||||
folder_paths=remainders,
|
folder_paths=remainder_paths,
|
||||||
):
|
):
|
||||||
folder_id = folder_entity["id"]
|
folder_id = folder_entity["id"]
|
||||||
folder_path = folder_entity["path"]
|
folder_path = folder_entity["path"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue