From: Philipp Spitzer Date: Mon, 6 Jun 2022 20:17:52 +0000 (+0200) Subject: Fix bug preventing gastronomy from being added. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wrpylib.git/commitdiff_plain/2721b76502d53d6bc02ab119f8c7eb4d9c8bec55 Fix bug preventing gastronomy from being added. --- diff --git a/bots/sledrun_wikitext_to_json.py b/bots/sledrun_wikitext_to_json.py index 72880cd..4ec4377 100644 --- a/bots/sledrun_wikitext_to_json.py +++ b/bots/sledrun_wikitext_to_json.py @@ -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