]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/commitdiff
Fix parsing note for gastronomy.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Fri, 18 Mar 2022 16:29:51 +0000 (17:29 +0100)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Fri, 18 Mar 2022 16:29:51 +0000 (17:29 +0100)
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:
                                                      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:
                                 name = name.strip()
                                 note = note.strip()
                                 if len(name) > 0: