Skip to content

Commit

Permalink
Fix nested parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
MarqRazz committed Jul 15, 2024
1 parent 138e501 commit 8b32f88
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ for value_{{loop.index}} in updated_params.{{mapped_param}}:
{% endfor -%}
{%- filter indent(width=4*(1+mapped_params|length)) %}
{% if struct_name != "" %}
param_name = f"{self.prefix_}{{struct_name}}{% for map in parameter_map%}{value_{{loop.index}}}.{% endfor %}{{parameter_field}}"
param_name = f"{self.prefix_}{{struct_name}}{% for map in parameter_map%}.{value_{{loop.index}}}.{% endfor %}{{parameter_field}}"
{% else %}
param_name = f"{self.prefix_}{% for map in parameter_map%}{value_{{loop.index}}}.{% endfor %}{{parameter_field}}"
param_name = f"{self.prefix_}{% for map in parameter_map%}.{value_{{loop.index}}}.{% endfor %}{{parameter_field}}"
{% endif -%}
if param.name == param_name:
{%- filter indent(width=4) %}
Expand Down

0 comments on commit 8b32f88

Please sign in to comment.