Fixed Rauchfrei in inn_to_gasthausbox.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Fri, 27 Jan 2017 22:03:59 +0000 (22:03 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Fri, 27 Jan 2017 22:03:59 +0000 (22:03 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2606 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrpylib/wrmwmarkup.py

index e47d9e9a8c0f51022f99fe2b7d9bcb69ea8ae09f..b2198791e8f4c6866859345fe7bf4226e7283529 100644 (file)
@@ -117,7 +117,7 @@ def inn_to_gasthausbox(inn):
     value['Betreiber'] = inn.operator
     value['Sitzpl√§tze'] = inn.seats
     value['√úbernachtung'] = (inn.overnight, inn.overnight_comment)
-    value['Rauchfrei'] = (inn.nonsmoker_area, inn.smoker_area)
+    value['Rauchfrei'] = {(False, True): 0.0, (True, True): 0.5, (True, False): 1.0}.get((inn.nonsmoker_area, inn.smoker_area), None)
     value['Rodelverleih'] = (inn.sled_rental, inn.sled_rental_comment)
     value['Handyempfang'] = inn.mobile_provider
     value['Homepage'] = inn.homepage