]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/commitdiff
Allow bus stops with name instead of municipality and name_local.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Tue, 12 Jul 2022 19:41:38 +0000 (21:41 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Tue, 12 Jul 2022 19:41:38 +0000 (21:41 +0200)
wrpylib/templates/sledrun_wikitext.txt

index c27faf366e575d7f44624e366228d4ca77ebb7ed..da6bd88b7cfcf67d13394c113c7e6c22eb29bc72 100644 (file)
@@ -122,7 +122,8 @@ Leider ist keine Anreise mit öffentlichen Verkehrsmitteln möglich.
 {%- endif %}
 
 {% for pt_stop in public_transport_stops -%}
 {%- endif %}
 
 {% for pt_stop in public_transport_stops -%}
-* {{ h.list_template('Haltestelle', [pt_stop.municipality, pt_stop.name_local, h.json_pos_ele_position(pt_stop.get('position', {})), h.json_pos_ele_elevation(pt_stop.get('position', {}))]) }}
+* {{ h.list_template('Haltestelle', [pt_stop.get('municipality', pt_stop.get('name', '')), pt_stop.get('name_local', ''),
+     h.json_pos_ele_position(pt_stop.get('position', {})), h.json_pos_ele_elevation(pt_stop.get('position', {}))]) }}
 {%- if pt_stop.note %} ({{ pt_stop.note }}){% endif %}
 {% for template_name in ['monitor_template', 'route_arrival_template', 'route_departure_template'] -%}
 {% if template_name in pt_stop -%}
 {%- if pt_stop.note %} ({{ pt_stop.note }}){% endif %}
 {% for template_name in ['monitor_template', 'route_arrival_template', 'route_departure_template'] -%}
 {% if template_name in pt_stop -%}