From daa9f275a553ea0bae3daceb0d1139878d6b902c Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Thu, 25 Feb 2021 21:03:32 +0100 Subject: [PATCH] Simplify (and fix) list of strings --- uwsgi-python/templates/apps/protokollsystem.j2 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/uwsgi-python/templates/apps/protokollsystem.j2 b/uwsgi-python/templates/apps/protokollsystem.j2 index ed9024a..2255bbe 100644 --- a/uwsgi-python/templates/apps/protokollsystem.j2 +++ b/uwsgi-python/templates/apps/protokollsystem.j2 @@ -39,9 +39,7 @@ URL_PARAMS = "" {% if cdn_url is defined %} CDN_URL = "{{cdn_url}}" {% endif %} -{% if protokolle_metadata_domain_whitelist is defined %} -PERMITTED_METADATA_DOMAINS = [ {{protokolle_metadata_domain_whitelist|map('quote')|join(', ')}} ] -{% endif %} +PERMITTED_METADATA_DOMAINS = {{protokolle_metadata_domain_whitelist|default([])}} PRINTING_ACTIVE = {{ protokolle_printing }} PRINTING_SERVER = "{{ protokolle_printing_server }}" -- GitLab