]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/blobdiff - bots/sledrun_wikitext_to_json.py
Fix bug preventing gastronomy from being added.
[philipp/winterrodeln/wrpylib.git] / bots / sledrun_wikitext_to_json.py
index 72880cd5eb677848a61df9b0457ab95f41788b3b..4ec4377f39195299df723064d61daf52718aff1a 100644 (file)
@@ -358,7 +358,7 @@ class SledrunWikiTextToJsonBot(
                                     g['note'] = note
                             elif len(remaining) > 0 and remaining != '...':
                                 g['name'] = remaining
-                            if len(gastronomy) != 0:
+                            if len(g) != 0:
                                 gastronomy.append(g)
                         else:
                             break