sledrun_json_page = Page(self.site, self.current_page.title() + '/Rodelbahn.json')
+ if sledrun_json_page.exists(): # should be an option
+ return
+
map_json_page = Page(self.site, self.current_page.title() + '/Landkarte.json')
map_json = None
sledrun_json = {
"name": self.current_page.title(),
"aliases": [],
- "entry_under_construction": sum(1 for c in wikilink_list if c.text == 'Kategorie:In Arbeit') > 0,
+ "entry_under_construction": sum(1 for c in wikilink_list if c.title == 'Kategorie:In Arbeit') > 0,
}
optional_set(sledrun_json, 'description', get_sledrun_description(wikicode))