From bb52359fc65b17e618978c495a6860787054de26 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Sat, 11 Jun 2022 16:12:21 +0200 Subject: [PATCH] Consider sled_rental_direct == true as having a sled rental. --- wrpylib/wrmwmarkup.py | 3 +++ 1 file changed, 3 insertions(+) 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: -- 2.39.5