From 720bfc4e95768e02026fe96e49295b18d945d06c Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Tue, 12 Jul 2022 21:48:03 +0200 Subject: [PATCH] Print "Nein" if there is no operator. --- wrpylib/templates/sledrun_wikitext.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wrpylib/templates/sledrun_wikitext.txt b/wrpylib/templates/sledrun_wikitext.txt index da6bd88..6d7216e 100644 --- a/wrpylib/templates/sledrun_wikitext.txt +++ b/wrpylib/templates/sledrun_wikitext.txt @@ -61,7 +61,8 @@ {%- for info in info_web %} ** {{ weblink(info) }} {%- endfor %} -* '''Betreiber''': {{ operator }} +* '''Betreiber''': +{%- if has_operator is defined %} {% if has_operator %}{{ operator }}{% else %}''Nein''{% endif %}{% endif %} * '''Hütten''': {{ gastronomy_description }} {%- for info in gastronomy %} ** {% set space = joiner(" ") %} -- 2.39.5