Refactor folder type to lowercase in ShotMetadataSolver. Adjusted parent_token_type to lowercase for consistency.

This commit is contained in:
Jakub Jezek 2024-03-26 23:23:31 +01:00
parent f88f23b589
commit d1cc880968
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -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
})