mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
convert only string values in prepare data
This commit is contained in:
parent
0e35560c3b
commit
e3cfb68007
1 changed files with 6 additions and 2 deletions
|
|
@ -94,8 +94,12 @@ def prepare_template_data(fill_pairs):
|
|||
output = {}
|
||||
for item in valid_items:
|
||||
keys, value = item
|
||||
upper_value = value.upper()
|
||||
capitalized_value = _capitalize_value(value)
|
||||
# Convert only string values
|
||||
if isinstance(value, str):
|
||||
upper_value = value.upper()
|
||||
capitalized_value = _capitalize_value(value)
|
||||
else:
|
||||
upper_value = capitalized_value = value
|
||||
|
||||
first_key = keys.pop(0)
|
||||
if not keys:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue