parent
35480106e5
commit
7ec84394f9
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ class Templar:
|
||||||
disable_lookups=disable_lookups,
|
disable_lookups=disable_lookups,
|
||||||
)
|
)
|
||||||
unsafe = hasattr(result, '__UNSAFE__')
|
unsafe = hasattr(result, '__UNSAFE__')
|
||||||
if convert_data and not self._no_type_regex.match(variable) and not unsafe:
|
if convert_data and not self._no_type_regex.match(variable):
|
||||||
# if this looks like a dictionary or list, convert it to such using the safe_eval method
|
# if this looks like a dictionary or list, convert it to such using the safe_eval method
|
||||||
if (result.startswith("{") and not result.startswith(self.environment.variable_start_string)) or \
|
if (result.startswith("{") and not result.startswith(self.environment.variable_start_string)) or \
|
||||||
result.startswith("[") or result in ("True", "False"):
|
result.startswith("[") or result in ("True", "False"):
|
||||||
|
|
Loading…
Add table
Reference in a new issue