]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/blobdiff - bots/sledrun_wikitext_to_json.py
Improve automatic parsing of car-distances.
[philipp/winterrodeln/wrpylib.git] / bots / sledrun_wikitext_to_json.py
index d53313dd8efe27ab1958d95c916cec5fdfdf5899..81c2a9b55eddf4863c86f7eed5e35a18c0aa7fa8 100644 (file)
@@ -302,7 +302,7 @@ class SledrunWikiTextToJsonBot(
 
             x = []
             for w in io.StringIO(str(v)):
-                match = re.match(r"\*\* von \'\'\'(.+)\'\'\'(.*): ([\d.,]+) km", w.rstrip())
+                match = re.match(r"\*\* [Vv]on \'\'\'(.+)\'\'\'(.*): ([\d.,]+) km", w.rstrip())
                 if match:
                     ya, yb, yc = match.groups()
                     yc = float(yc.replace(',', '.'))