mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
do replacement only if replacement is still string
This commit is contained in:
parent
13aec9cb57
commit
7daf1d3d0b
1 changed files with 4 additions and 1 deletions
|
|
@ -145,7 +145,10 @@ def _fill_schema_template_data(
|
|||
# Only replace the key in string
|
||||
template = template.replace(replacement_string, value)
|
||||
|
||||
output = template.replace("__dbcb__", "{").replace("__decb__", "}")
|
||||
if isinstance(template, STRING_TYPE):
|
||||
output = template.replace("__dbcb__", "{").replace("__decb__", "}")
|
||||
else:
|
||||
output = template
|
||||
|
||||
else:
|
||||
output = template
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue