From 815edad207ea02c66bfbd22b342914066b4b0c4b Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Sat, 11 Jun 2022 14:04:58 +0200 Subject: [PATCH] Parse "freizeitticket_tyrol" and "regio_card_tyrol". --- bots/update_sledrun_json_from_wikitext_corection.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bots/update_sledrun_json_from_wikitext_corection.py b/bots/update_sledrun_json_from_wikitext_corection.py index bd4431c..01311a3 100644 --- a/bots/update_sledrun_json_from_wikitext_corection.py +++ b/bots/update_sledrun_json_from_wikitext_corection.py @@ -82,6 +82,12 @@ class UpdateSledrunJsonFromWikiText( correction_name = bb.get('Korrektur_To_Name', None) if isinstance(correction_name, Parameter) and correction_name.value.strip() != "": sledrun_json['correction_name'] = correction_name.value.strip() + freizeitticket = bb.get('Freizeitticket', None) + if isinstance(freizeitticket, Parameter) and freizeitticket.value.strip() == "Ja": + sledrun_json['freizeitticket_tyrol'] = True + regiocard = bb.get('Regiocard', None) + if isinstance(regiocard, Parameter) and regiocard.value.strip() != "": + sledrun_json['regio_card_tyrol'] = True _button_bar() -- 2.39.5