wikicode_common = next(iter(wikicode.get_sections(levels=[2], matches='Allgemeines')), None)
wikitext_common = str(wikicode_common)
lines = wikitext_common.split('\n')
- lines = dropwhile(lambda line: "'''Siehe auch'''" not in line, lines)
+ lines = dropwhile(lambda line: "'''Siehe auch'''" not in line and '* Siehe auch:' not in line, lines)
lines = itertools.islice(lines, 1, None) # omit "Siehe auch" line
lines = takewhile(lambda line: line.startswith('**'), lines)
for line in lines:
if sledrun_json == sledrun_json_orig:
return
sledrun_json_text = json.dumps(sledrun_json_ordered, ensure_ascii=False, indent=4)
- summary = 'Information zu "Anderen Rodelbahnen" im Rodelbahn JSON aktualisiert vom Wikitext.'
+ summary = 'Information zu "Siehe auch" im Rodelbahn JSON aktualisiert vom Wikitext.'
self.userPut(sledrun_json_page, sledrun_json_orig_text, sledrun_json_text, summary=summary, contentmodel='json')