Asset Pipeline v2 #145
@ -146,9 +146,13 @@ def get_name_with_task_layer_prefix(name: str, task_layer_owner: str) -> str:
|
||||
Returns:
|
||||
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:
|
||||
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]
|
||||
return prefix + "." + name
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user