From: Philipp Spitzer Date: Sat, 11 Jun 2022 12:04:58 +0000 (+0200) Subject: Parse "freizeitticket_tyrol" and "regio_card_tyrol". X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wrpylib.git/commitdiff_plain/815edad207ea02c66bfbd22b342914066b4b0c4b Parse "freizeitticket_tyrol" and "regio_card_tyrol". --- 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()