From d1cc880968da13e900649ee223df2cef99cbfc8c Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Tue, 26 Mar 2024 23:23:31 +0100 Subject: [PATCH] Refactor folder type to lowercase in ShotMetadataSolver. Adjusted parent_token_type to lowercase for consistency. --- client/ayon_core/hosts/traypublisher/api/editorial.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ayon_core/hosts/traypublisher/api/editorial.py b/client/ayon_core/hosts/traypublisher/api/editorial.py index 92a7b315f8..09a2ab17ac 100644 --- a/client/ayon_core/hosts/traypublisher/api/editorial.py +++ b/client/ayon_core/hosts/traypublisher/api/editorial.py @@ -186,7 +186,7 @@ class ShotMetadataSolver: # in case first parent is project then start parents from start if ( _index == 0 - and parent_token_type == "project" + and parent_token_type == "Project" ): project_parent = parents[0] parents = [project_parent] @@ -194,7 +194,7 @@ class ShotMetadataSolver: parents.append({ "entity_type": "folder", - "folder_type": parent_token_type, + "folder_type": parent_token_type.lower(), "entity_name": parent_name })