mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
use full variable names
This commit is contained in:
parent
4521188ecf
commit
d812395af9
1 changed files with 3 additions and 3 deletions
|
|
@ -337,11 +337,11 @@ class LoaderController(BackendLoaderController, FrontendLoaderController):
|
|||
project_name = context.get("project_name")
|
||||
folder_path = context.get("folder_path")
|
||||
if project_name and folder_path:
|
||||
folder = ayon_api.get_folder_by_path(
|
||||
folder_entity = ayon_api.get_folder_by_path(
|
||||
project_name, folder_path, fields=["id"]
|
||||
)
|
||||
if folder:
|
||||
folder_id = folder["id"]
|
||||
if folder_entity:
|
||||
folder_id = folder_entity["id"]
|
||||
return {
|
||||
"project_name": project_name,
|
||||
"folder_id": folder_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue