Asset Pipeline v2 #145

Closed
Nick Alberelli wants to merge 431 commits from (deleted):feature/asset-pipeline-v2 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 2935ed5aec - Show all commits

View File

@ -146,9 +146,13 @@ def get_name_with_task_layer_prefix(name: str, task_layer_owner: str) -> str:
Returns: Returns:
str: Returns name with prefix str: Returns name with prefix
""" """
if name.startswith(config.TASK_LAYER_TYPES[task_layer_owner] + "."):
return name
for task_layer_key in config.TASK_LAYER_TYPES: for task_layer_key in config.TASK_LAYER_TYPES:
if name.startswith(config.TASK_LAYER_TYPES[task_layer_key] + "."): if name.startswith(config.TASK_LAYER_TYPES[task_layer_key] + "."):
return name name = name.replace(name.split(".")[0], "")[1:]
break
prefix = config.TASK_LAYER_TYPES[task_layer_owner] prefix = config.TASK_LAYER_TYPES[task_layer_owner]
return prefix + "." + name return prefix + "." + name