]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/blobdiff - bots/sledrun_wikitext_to_json.py
Fix parsing note for gastronomy.
[philipp/winterrodeln/wrpylib.git] / bots / sledrun_wikitext_to_json.py
index 2fabd237cbbbedcca9e8183a8234b2107a0ac549..930c513ddd4ad9f3b2e86fe96ec498de5920285c 100644 (file)
@@ -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: