map_json = json.loads(map_json_page.text)
else:
map_json = None
- text = create_sledrun_wiki(sledrun_json, map_json)
+ impressions = None
+ sledrun_impressions_page = Page(self.site, self.current_page.title() + '/Impressionen')
+ if sledrun_impressions_page.exists():
+ impressions = sledrun_impressions_page.title()
+ text = create_sledrun_wiki(sledrun_json, map_json, impressions)
summary = 'Rodelbahnbeschreibung von aus JSON Daten aktualisiert.'
self.put_current(text, summary=summary)