From 6cc6360f4cdf948745eaaeebbb2472ba84de91d0 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Sun, 22 May 2022 15:35:48 +0200 Subject: [PATCH] Ignore empty bus stop. --- bots/sledrun_wikitext_to_json.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bots/sledrun_wikitext_to_json.py b/bots/sledrun_wikitext_to_json.py index 83590da..ba898e9 100644 --- a/bots/sledrun_wikitext_to_json.py +++ b/bots/sledrun_wikitext_to_json.py @@ -251,6 +251,8 @@ class SledrunWikiTextToJsonBot( if node.name == 'Haltestelle': if ya is not None: public_transport_stops.append(ya) + if len([1 for p in node.params if len(p.strip()) != 0]) == 0: + continue ya = {} z = node.get(1, None) if z is not None: -- 2.39.5