From: Philipp Spitzer Date: Sat, 11 Jun 2022 14:12:21 +0000 (+0200) Subject: Consider sled_rental_direct == true as having a sled rental. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wrpylib.git/commitdiff_plain/bb52359fc65b17e618978c495a6860787054de26 Consider sled_rental_direct == true as having a sled rental. --- diff --git a/wrpylib/wrmwmarkup.py b/wrpylib/wrmwmarkup.py index 752cf65..68b9277 100644 --- a/wrpylib/wrmwmarkup.py +++ b/wrpylib/wrmwmarkup.py @@ -431,6 +431,9 @@ def create_sledrun_wiki(sledrun_json: Dict, map_json: Optional[Dict], impression def rodelverleih() -> Optional[List[Tuple[str, Optional[str]]]]: v = sledrun_json.get('sled_rental') if v is None: + d = sledrun_json.get('sled_rental_direct') + if d is not None: + return [("Ja", None)] return None w = [] for x in v: