From 3ef85264e3f1dfd22b4d9569cccb08a89f41a010 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Sat, 16 Jul 2022 09:22:37 +0200 Subject: [PATCH] Parse "see also" links even if heading is not quoted. --- bots/update_sledrun_json_from_wikitext_see_also.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/update_sledrun_json_from_wikitext_see_also.py b/bots/update_sledrun_json_from_wikitext_see_also.py index a46c260..c09e6a8 100644 --- a/bots/update_sledrun_json_from_wikitext_see_also.py +++ b/bots/update_sledrun_json_from_wikitext_see_also.py @@ -105,7 +105,7 @@ class UpdateSledrunJsonFromWikiText( 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: -- 2.39.5