From 257b78436fb6e4521696396e976b9cbff90ca42e Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Thu, 25 Feb 2021 20:40:22 +0100 Subject: [PATCH] Simplify jinja code --- uwsgi-python/templates/apps/protokollsystem.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uwsgi-python/templates/apps/protokollsystem.j2 b/uwsgi-python/templates/apps/protokollsystem.j2 index e15d159..ed9024a 100644 --- a/uwsgi-python/templates/apps/protokollsystem.j2 +++ b/uwsgi-python/templates/apps/protokollsystem.j2 @@ -40,7 +40,7 @@ URL_PARAMS = "" CDN_URL = "{{cdn_url}}" {% endif %} {% if protokolle_metadata_domain_whitelist is defined %} -PERMITTED_METADATA_DOMAINS = [ {% for domain in protokolle_metadata_domain_whitelist %} "{{domain}}", {% endfor %} ] +PERMITTED_METADATA_DOMAINS = [ {{protokolle_metadata_domain_whitelist|map('quote')|join(', ')}} ] {% endif %} PRINTING_ACTIVE = {{ protokolle_printing }} -- GitLab