From: Philipp Spitzer Date: Fri, 18 Mar 2022 16:29:51 +0000 (+0100) Subject: Fix parsing note for gastronomy. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wrpylib.git/commitdiff_plain/69a5869e822e7f6e98514b37a1335964b1f7810b Fix parsing note for gastronomy. --- diff --git a/bots/sledrun_wikitext_to_json.py b/bots/sledrun_wikitext_to_json.py index 2fabd23..930c513 100644 --- a/bots/sledrun_wikitext_to_json.py +++ b/bots/sledrun_wikitext_to_json.py @@ -361,7 +361,7 @@ class SledrunWikiTextToJsonBot( if isinstance(n, (Text, Tag)) and str(n).strip() != '*')).strip() match = re.match(r'(.*)\((.+)\)', remaining) if match: - name, note = match.group(1) + name, note = match.groups() name = name.strip() note = note.strip() if len(name) > 0: