From: Philipp Spitzer Date: Thu, 21 Jul 2022 20:56:17 +0000 (+0200) Subject: Don't omit walkup_note in Rodelbahnbox. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wrpylib.git/commitdiff_plain/7234b88283ba04937697e67d6756dc4a986da356 Don't omit walkup_note in Rodelbahnbox. --- diff --git a/wrpylib/wrmwmarkup.py b/wrpylib/wrmwmarkup.py index 3448bcf..7186e93 100644 --- a/wrpylib/wrmwmarkup.py +++ b/wrpylib/wrmwmarkup.py @@ -17,7 +17,7 @@ from wrpylib.wrvalidators import LonLat, opt_lonlat_from_str, opt_lonlat_to_str, opt_phone_comment_enum_to_str, lift_german_from_str, GASTHAUSBOX_DICT, opt_difficulty_german_from_str, \ opt_avalanches_german_from_str, opt_public_transport_german_from_str, \ opt_tristate_german_comment_from_str, rodelbahnbox_to_str, lonlat_to_str, opt_no_or_str_to_str, \ - opt_no_or_str_from_str, opt_tristate_german_from_str + opt_no_or_str_from_str, opt_tristate_german_from_str, tristate_german_from_str def split_lon_lat(value: Optional[LonLat]) -> Union[LonLat, Tuple[None, None]]: @@ -502,7 +502,9 @@ def create_sledrun_wiki(sledrun_json: Dict, map_json: Optional[Dict], impression ('Betreiber', (sledrun_json.get('has_operator', True if 'operator' in sledrun_json else None), sledrun_json.get('operator'))), ('Öffentliche Anreise', opt_public_transport_german_from_str(sledrun_json.get('public_transport', ''))), ('Aufstieg möglich', sledrun_json.get('walkup_possible')), - ('Aufstieg getrennt', opt_tristate_german_comment_from_str(sledrun_json.get('walkup_separate', ''))), + ('Aufstieg getrennt', ( + tristate_german_from_str(sledrun_json['walkup_separate']) if 'walkup_separate' in sledrun_json else None, + sledrun_json.get('walkup_note'))), ('Gehzeit', sledrun_json.get('walkup_time')), ('Aufstiegshilfe', aufstiegshilfe()), ('Beleuchtungsanlage', (opt_tristate_german_from_str(sledrun_json.get('nightlight_possible', '')),