Asset Pipeline v2 #145
@ -146,10 +146,12 @@ def get_name_with_task_layer_prefix(name: str, td_type_key: str) -> str:
|
||||
Returns:
|
||||
str: Returns name with prefix
|
||||
"""
|
||||
prefix = get_default_task_layer(td_type_key)
|
||||
default_task_layer = get_default_task_layer(td_type_key)
|
||||
|
||||
for task_layer_key in config.TASK_LAYER_TYPES:
|
||||
if name.startswith(task_layer_key + "."):
|
||||
if name.startswith(config.TASK_LAYER_TYPES[task_layer_key] + "."):
|
||||
return name
|
||||
prefix = config.TASK_LAYER_TYPES[default_task_layer]
|
||||
return prefix + "." + name
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user