From: Philipp Spitzer Date: Sun, 22 May 2022 20:19:46 +0000 (+0200) Subject: Parse correction_email. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wrpylib.git/commitdiff_plain/3577e4c34ff5d705a9adacd9550c17e08d918246 Parse correction_email. --- diff --git a/bots/sledrun_wikitext_to_json.py b/bots/sledrun_wikitext_to_json.py index 132dc26..dc5d06c 100644 --- a/bots/sledrun_wikitext_to_json.py +++ b/bots/sledrun_wikitext_to_json.py @@ -228,6 +228,9 @@ class SledrunWikiTextToJsonBot( video = bb.get('video', None) if isinstance(video, Parameter) and video.value.strip() != "": sledrun_json['videos'] = [{'url': str(video.value.strip())}] + correction = bb.get('Korrektur_To', None) + if isinstance(correction, Parameter) and correction.value.strip() != "": + sledrun_json['correction_email'] = correction.value.strip() _button_bar() def _public_transport():