Files
opensearch-pyd/utils/templates/substitutions
T
2019-12-22 16:32:49 +01:00

10 lines
319 B
Plaintext

{% for p, info in api.params %}
{% if p in substitutions and p not in api.url_parts.1 %}
# {{ substitutions[p] }} is a reserved word so it cannot be used, use {{ p }} instead
if "{{ p }}" in params:
params["{{ substitutions[p] }}"] = params.pop("{{ p }}")
{% endif %}
{% endfor %}