]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/commitdiff
Fix bug preventing gastronomy from being added.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 6 Jun 2022 20:17:52 +0000 (22:17 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 6 Jun 2022 20:21:13 +0000 (22:21 +0200)
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
                                     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
                                 gastronomy.append(g)
                         else:
                             break