Increase indent to avoid a Python warning in update_wrintermapssledrun.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 17 Dec 2019 20:19:17 +0000 (20:19 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 17 Dec 2019 20:19:17 +0000 (20:19 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2865 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrpylib/wrintermaps.py

index 9ae6cab93fa8a5445ee7d8ef4f7ab29b200695d5..f5f0847c8d99552cc728d75f0f1ae0aed38bf67d 100644 (file)
@@ -51,14 +51,14 @@ def update_wrintermapssledrun(session, json_content: dict):
             if region_json is None:
                 raise UpdateError(
                     f'Sledrun with intermaps id {intermaps_sledrun.intermaps_sledrun_id} not found in JSON')
-        if intermaps_sledrun.intermaps_sledrun_name is None:
-            intermaps_sledrun.intermaps_sledrun_name = sledrun_json['name']
-        if intermaps_sledrun.intermaps_region_id is None:
-            intermaps_sledrun.intermaps_region_id = region_json['id']
-        if intermaps_sledrun.intermaps_region_name is None:
-            intermaps_sledrun.intermaps_region_name = region_json['names']['de']
-        if intermaps_sledrun.intermaps_country is None:
-            intermaps_sledrun.intermaps_country = region_json['countryCode']
+            if intermaps_sledrun.intermaps_sledrun_name is None:
+                intermaps_sledrun.intermaps_sledrun_name = sledrun_json['name']
+            if intermaps_sledrun.intermaps_region_id is None:
+                intermaps_sledrun.intermaps_region_id = region_json['id']
+            if intermaps_sledrun.intermaps_region_name is None:
+                intermaps_sledrun.intermaps_region_name = region_json['names']['de']
+            if intermaps_sledrun.intermaps_country is None:
+                intermaps_sledrun.intermaps_country = region_json['countryCode']
 
         if intermaps_sledrun.wr_page_title is None:
             page = session.query(Page).get(intermaps_sledrun.wr_page_id)