mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-24 09:40:21 -06:00
Fix the Jinja2 error for python 3.8.
This commit is contained in:
parent
4d7fc8be52
commit
898c7b27df
@ -5,15 +5,12 @@
|
|||||||
{% set _ = ns.langOptions.append({'value': key, 'label': lang}) %}
|
{% set _ = ns.langOptions.append({'value': key, 'label': lang}) %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% set oauth2_config = [] %}
|
{% set oauth2_config = [] %}
|
||||||
{% set oauth2_config_to_be_included = ['OAUTH2_NAME', 'OAUTH2_DISPLAY_NAME', 'OAUTH2_ICON', 'OAUTH2_BUTTON_COLOR' ] %}
|
{% for i in config.OAUTH2_CONFIG %}
|
||||||
{% for oauth_client in config.OAUTH2_CONFIG %}
|
{% set _tmp = oauth2_config.append({'OAUTH2_NAME': config.OAUTH2_CONFIG[loop.index-1].get('OAUTH2_NAME', ''),
|
||||||
{% set _tmp = [] %}
|
'OAUTH2_BUTTON_COLOR': config.OAUTH2_CONFIG[loop.index-1].get('OAUTH2_BUTTON_COLOR', ''),
|
||||||
{% for key, value in oauth_client.items() %}
|
'OAUTH2_DISPLAY_NAME': config.OAUTH2_CONFIG[loop.index-1].get('OAUTH2_DISPLAY_NAME', ''),
|
||||||
{% if key in oauth2_config_to_be_included %}
|
'OAUTH2_ICON': config.OAUTH2_CONFIG[loop.index-1].get('OAUTH2_ICON', '')
|
||||||
{% set _ = _tmp.append((key, value)) %}
|
}) %}
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
{% set _ = oauth2_config.append(dict.from_keys(_tmp)) %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% set page_props = {
|
{% set page_props = {
|
||||||
|
Loading…
Reference in New Issue
Block a user