sledrun_json['sled_rental'] = w
_sled_rental()
+ def _cachet():
+ v = rbb['Gütesiegel']
+ if v is not None:
+ sledrun_json['cachet'] = len(v) > 0
+ _cachet()
+
v = rbb['In Übersichtskarte']
if v is not None:
sledrun_json['show_in_overview'] = v
w.append((n, c))
return w
+ def cachet() -> Optional[List]:
+ v = sledrun_json.get('cachet')
+ if v is not None:
+ if not v:
+ return []
+ return None
+
def webauskunft() -> Tuple[Optional[bool], Optional[str]]:
info_web = sledrun_json.get('info_web')
if info_web is None:
('Beleuchtungsanlage', opt_tristate_german_comment_from_str(sledrun_json.get('nightlight_possible', ''))),
('Beleuchtungstage', nightlightdays_from_str(sledrun_json.get('nightlight_weekdays', ''))),
('Rodelverleih', rodelverleih()),
- ('Gütesiegel', None),
+ ('Gütesiegel', cachet()),
('Webauskunft', webauskunft()),
('Telefonauskunft', telefonauskunft()),
('Bild', sledrun_json.get('image')),
return ' '.join(value)
-def cachet_german_from_str(value):
+def cachet_german_from_str(value) -> Optional[List[Tuple[str, str, str]]]:
"""Converts a "Gütesiegel":
'' => None
'Nein' => []