]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/commitdiff
Consider sled_rental_direct == true as having a sled rental.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Sat, 11 Jun 2022 14:12:21 +0000 (16:12 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Sat, 11 Jun 2022 14:12:21 +0000 (16:12 +0200)
wrpylib/wrmwmarkup.py

index 752cf65add09f584284be537a3f730836640a7d1..68b9277ec468a7a08bd883f6ceea834855636408 100644 (file)
@@ -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:
     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:
             return None
         w = []
         for x in v: