]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/blobdiff - bots/sledrun_wikitext_to_json.py
Parse correction_email.
[philipp/winterrodeln/wrpylib.git] / bots / sledrun_wikitext_to_json.py
index 132dc2663bf77ff09046ff83bcb6282dadce53d5..dc5d06c9ec17dcbfbfd7ad98acda485d23a5574c 100644 (file)
@@ -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():