You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/07/17 10:09:18 UTC
[GitHub] [airflow] brain-buster edited a comment on issue #16976: Rendered Templates - py renderer doesn't work for list or dict
brain-buster edited a comment on issue #16976:
URL: https://github.com/apache/airflow/issues/16976#issuecomment-881871546
Reference: /airflow/www/views.py -> rendered_templates() method
In version 2.0.2:
```
if renderer in renderers:
if isinstance(content, (dict, list)):
content = json.dumps(content, sort_keys=True, indent=4)
html_dict[template_field] = renderers[renderer](content)
```
In version 2.1.2:
```
if renderer in renderers:
html_dict[template_field] = renderers[renderer](content)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org